dain / git-like-cli Goto Github PK
View Code? Open in Web Editor NEWGit-like-cli as been renamed and moved to Airline
Home Page: https://github.com/airlift/airline
Git-like-cli as been renamed and moved to Airline
Home Page: https://github.com/airlift/airline
It would be nice to support mutually exlusive option groups for a command. I am not sure what the best syntax would be - something like this, maybe:
@Option(name = "-a", group = "mutex")
String a;
@Option(name = "-b", group = "mutex")
String b;
Accept the name of a class that implements Function<String,V>
to transform the String option value to the type required by the option field itself.
The command should be able to either access the Cli
instance to allow them to either cause the help/usage text to be displayed, or to cause the program to exit with a specific message and status.
Detect the presence of Optional<?>
as the type of a field, and set the value to Optional.absent()
if no parameter is set for the option.
The parameters for an option should be validatable (beyond the allowed options property). This could be done by accepting a class name for a Predicate which tests if they are acceptable. Some standard predicates could allow things like regular expressions. For example:
@Option(name = "-v", validator = CheckValid.class)
String v;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.