Giter VIP home page Giter VIP logo

clap-nix's Introduction

clap-nix's People

Contributors

vic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clap-nix's Issues

Allow usage from outside of nix as a command line tool.

Since clap-nix is implemented in Nix, it will always need a Nix interpreter to work. However there would be some benefit on creating an external interface (a nix-clap command perhaps) that you could use from the shell and get the resolved options output either in another nix file or json or anything that nix can write to.

Automatic help generator.

Since nix options are self-documenting, it would be nice to be able to output help in various formats: plain-text (for showing as part of --help), as a file for man(1) for longer documentation, as json for processing from other tools.

At least plain text should be implemented.

Allow setting parent options from subcommands.

Currently if you select a command options from their parent commands are no longer recognized. This should not be case since, for example the following should be possible:

mycmd foo --enable-x bar --enable-y <=> mycmd foo bar --enable-x --enable-y

and clap-nix should automatically know that enable-x belongs to the foo command (only if there's not an enable-x in bar itself.

command enabled flag

Change the enabled flag to be true only if anything inside the command was explicitly set by the user. Or perhaps this should be another flag ?

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.