Git Product home page Git Product logo

Comments (8)

sherzberg avatar sherzberg commented on June 10, 2024

Sub commands would also be awesome. This could help with autocompletion.

from ishell.

abiosoft avatar abiosoft commented on June 10, 2024

This would be nice to have. I'd look into it.

from ishell.

FlorianOtel avatar FlorianOtel commented on June 10, 2024

+1 on subcommands.

Any progress with that ?

from ishell.

abiosoft avatar abiosoft commented on June 10, 2024

I will soon start working on subcommands and I've added it to the roadmap. https://github.com/abiosoft/ishell#roadmap-in-no-particular-order.

from ishell.

dotslash avatar dotslash commented on June 10, 2024

Hey @abiosoft
I have a feature request which is very related to this. I want to distinguish between number arguments and string arguments

Example
>>> command_name "0" 1 "arg2" arg3
I want to know that
arg[0] is a string with value "0"
arg[1] is a number (int/long)
arg[2], arg[3] are strings

Any plans on supporting this?

from ishell.

abiosoft avatar abiosoft commented on June 10, 2024

@sherzberg Check out the current master for an implementation of subcommands and beginning of help texts.
Though it contain breaking changes and you will need to update your codes. The previous version is still available on gopkg.in/abiosoft/ishell.v1.

from ishell.

abiosoft avatar abiosoft commented on June 10, 2024

@dotslash I'm not sure I'll be implementing your request as you can easily parse the string from the command arguments.

from ishell.

abiosoft avatar abiosoft commented on June 10, 2024

The new subcommand feature handles this.

Thanks.

from ishell.

Related Issues (20)

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.