{"repo":"siokas/denomander","free":true,"listed":false,"github":"https://github.com/siokas/denomander","clone":"git clone https://github.com/siokas/denomander.git","description":"Deno command-line interfaces made easy","language":"TypeScript","stars":152,"topics":["deno","command-line-interface","typescript","cli","cli-app","command-line-parser","arguments-parser","deno-arguments-parser","deno-tools"],"license":"MIT","category":"cli-tools","readme_excerpt":"Denomander is a solution for Deno command-line interfaces. It is inspired by tj's commander.js for Node.js. Denomander is a Deno project so deno must be installed. Alternatively, there is a Dockerfile in the root of the project to create an image running deno. To use it just build the Docker file docker build -t deno . Now you can run all the deno commands docker run --rm -v $PWD:/app/ deno test Installation Using deno.land Using nest.land Usage Example First, in your deno script, create a program , optionally passing a name, description and version. If not you can change them afterwards by setting the app name , app description and app version variables. There are three option types: commands , options and required options . Options To set an option just call the option() method passing the short and long flags separated by a space and the description . The value can be accessed as properties. You may define the option's short and long flags by separating them with a space , comma or (vertical bar or \"pipe\") . Required Options The implementation of required option is exactly same as the optional option but you have to call the requiredOption() method instead. Global Options and Base Command Options You have the option to define options which belong to all commands (global option) and options which belong to no command (base command option ex. --help , --version ). Custom Option Processing You may specify a function to do custom processing of option values. The callback funct","default_branch":null,"files":null,"tree":[],"storefront":"/r/siokas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/siokas/denomander/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}