Git Product home page Git Product logo

Comments (4)

JoshMcCullough avatar JoshMcCullough commented on May 27, 2024 1

The use case is myapp do-it with an arg, e.g. name. When name is not provided as an argument on the command line, then we'd like yargs-interactive to prompt for it. Currently you can only do interactive stuff without commands.

from yargs-interactive.

yfwz100 avatar yfwz100 commented on May 27, 2024

I am looking for command support too...

from yargs-interactive.

nanovazquez avatar nanovazquez commented on May 27, 2024

Hey @JoshMcCullough and @yfwz100 . Can you provide the use cases you are looking for with more detail? If you want to use command, why not use yargs directly?

The purpose of the library is to provide support for interactivity commands, using a yargs fashion, but also add the ability to pass values to these commands when the interactivity is not needed (i.e. in CI environments).

from yargs-interactive.

walterra avatar walterra commented on May 27, 2024

I came here looking for the same and thought it was somehow supported since the examples use .usage('$0 <command> [args]') which would hint at "command" support. If that's not the case and not planned maybe these description should be updated to say just .usage('$0 [args]')? Still agree with previous posters that the use case would be to have a main script with several commands where each command would support an interactive mode.

from yargs-interactive.

Related Issues (9)

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.