Giter VIP home page Giter VIP logo

brain's People

Contributors

ayushsehrawat avatar jnsougata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

brain's Issues

Make brain.sh portable

Hi, this is just a suggestion, but, through the use of statically linked binaries, you can get rid of the hard-dependencies on jq, bash, etc, by using the bigdl binary manager like this: "wget -qO- "https://raw.githubusercontent.com/xplshn/bigdl/master/stubdl" | sh -s -- run --transparent jq", you could even get rid of the hard dependency on bash by using "wget -qO- "https://raw.githubusercontent.com/xplshn/bigdl/master/stubdl" | sh -s -- run --transparent bash <<BASH_SCRIPT"

Bigdl is a small, suckless package manager written in Go, and it provides more than 1550 statically linked binaries

Another thing that can be done, is, integrate such statically linked binaries directly into brain.sh, using something like https://github.com/xplshn/Handyscripts/blob/master/pelf or doing it manually, PELF basically packages a program + its dependencies + an optional wrapper + optional libs and files into a single binary that can be used the same way as the original program.

I really wish to cooperate and add more binaries to BigDl and I think your project and mine could benefit a lot by cooperating.

feat: brain search management

Implementation of brain package manager search/info/list

brain neurons search <package_name>
brain neurons list all
brain neurons list installed
brain neurons info <package_name>

To think:

  • How we will implement list all?
    • I am planning to use some api if any and get files names
  • How to list installed packages?
    • Maybe store?
  • How to make info ?
    • I am planning to include some thing like
       # Package Name: <name>
      
    In the sh files of each one , so we can just get first few lines somehow

feat: custom help command for each command

A custom help command for each command is needed since we can't list all in usage.

I am planning to implement this via making functions which get invoked at these 2 conditions

  • The user missed required args for it / left empty
  • It's wrong

Implementation of this can be like this one -

neurons_usage() {
    echo "Usage: $(basename "$0") [options] [command]"
    echo "Commands:"
    echo "  list all        List all available packages"
    echo "  list installed  List locally installed packages"
    echo "  search          Search for a package"
    echo "  info            Show information about a package"
    echo ""
    echo "For more information, visit https://github.com/neobrains/brain"
}

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.