GithubHelp home page GithubHelp logo

vandesm14 / how Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 146 KB

An AI-powered CLI to create tailored commands all within the comforts of your shell!

License: MIT License

Shell 5.57% TypeScript 94.43%
cli deno gpt-3 shell

how's Introduction

Hi!

I'm Shane, a friendly TypeScript and Rust magician. I like computers and enjoy staring at them for hours on end.

how's People

Contributors

leonskidev avatar vandesm14 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

zplusfour

how's Issues

Standalone Binary

We want how to work without any configuration. This will be useful for places like Replit where extraneous file changes either won't persist or aren't permitted.

Luckily, how already has support for environment variables. However, the question becomes:

  • Do we release a separate binary for standalone mode?
  • Or do we use a STANDALONE=1 env var to control this mode on-the-fly?

Magical Updater

Because we release a simple binary, it would be helpful to have a how update command to magically update the installed binary.

This system will work like this:

  1. The user runs how update (which sounds hilarious)
  2. The updater checks if the current version is less than the latest release on GitHub (using it's shipped version)
  3. If the current version is under, it will begin the update process
  4. It will notify the user of the version difference and the size of the download
  5. It will download the newest binary into memory (a variable)
  6. The updater finds where the binary is, either via config or via something like __dirname equivalent for Deno
  7. The updater will copy the original binary to how.vX.X.X
  8. The updater will then delete the original binary and write the latest binary data to the same path

Multi-Platform Support

At this time, how only works on Linux. This is because the config format and context collection relies on Linux conventions.

Multi-platform support will require us to use Polyfills for env vars, running commands, and config paths. Supporting other Linux or Linux-like distros should be possible in its current state, but I haven't tested to be sure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.