-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding FromArgs::help_json_from_args() to get JSON encoded help message #115
base: master
Are you sure you want to change the base?
Commits on Dec 13, 2021
-
Adding --help-json to get JSON encoded help message (#1)
* Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown. * Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown.
Configuration menu - View commit details
-
Copy full SHA for 4b21242 - Browse repository at this point
Copy the full SHA 4b21242View commit details
Commits on Dec 14, 2021
-
Adding --help-json to get JSON encoded help message (#2)
* Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown. * Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown. * Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown.
Configuration menu - View commit details
-
Copy full SHA for 56f4a21 - Browse repository at this point
Copy the full SHA 56f4a21View commit details -
Adding --help-json to get JSON encoded help message
This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown.
Configuration menu - View commit details
-
Copy full SHA for 287703b - Browse repository at this point
Copy the full SHA 287703bView commit details
Commits on Dec 29, 2021
-
Adding --help-json to get JSON encoded help message (#1)
* Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown. * Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown.
Configuration menu - View commit details
-
Copy full SHA for 767fc8d - Browse repository at this point
Copy the full SHA 767fc8dView commit details -
Adding --help-json to get JSON encoded help message (#2)
* Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown. * Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown. * Adding --help-json to get JSON encoded help message This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown.
Configuration menu - View commit details
-
Copy full SHA for 34a647b - Browse repository at this point
Copy the full SHA 34a647bView commit details -
Adding --help-json to get JSON encoded help message
This adds the `--help-json` flag which prints the help information encoded in a JSON object. This enables template engines to render the help information in other formats such as markdown.
Configuration menu - View commit details
-
Copy full SHA for 66e80be - Browse repository at this point
Copy the full SHA 66e80beView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7d61a3 - Browse repository at this point
Copy the full SHA b7d61a3View commit details -
Adding argh::help_json_from_args()
This adds 2 methods to arghm, help_json_from_args() and help_json(), which is parallel to ::from_env(). The return value is a JSON encoded string suitable for parsing and using as input to generate reference docs.
Configuration menu - View commit details
-
Copy full SHA for 8131de1 - Browse repository at this point
Copy the full SHA 8131de1View commit details -
Adding argh::help_json_from_args()
This adds 2 methods to arghm, help_json_from_args() and help_json(), which is parallel to ::from_env(). The return value is a JSON encoded string suitable for parsing and using as input to generate reference docs.
Configuration menu - View commit details
-
Copy full SHA for f00f762 - Browse repository at this point
Copy the full SHA f00f762View commit details -
These were made inadvertently when merging changes.
Configuration menu - View commit details
-
Copy full SHA for 03f0229 - Browse repository at this point
Copy the full SHA 03f0229View commit details -
Configuration menu - View commit details
-
Copy full SHA for cca7412 - Browse repository at this point
Copy the full SHA cca7412View commit details -
Consolidating help JSON schema and usage.
This makes several changes that make it easier to use the JSON help data and also makes it more complete. * The subcommands are recursively called to collect the help information for each command. This means one call to help_json_from_args on the "TopLevel" struct will generate complete help for all subcommands. * `options` has been renamed to `flags`. * optionality has been added to the flags. This is "required", "optional", "repeated", or a Rust fragment containing for the default value. * "arg_name" as been added to flags.
Configuration menu - View commit details
-
Copy full SHA for a2bd1b5 - Browse repository at this point
Copy the full SHA a2bd1b5View commit details
Commits on Dec 30, 2021
-
Adding README documentation and clippy warnings
This also adds a default implementation of help_json_from_args for FromArgs in order to be backwards compatible with non `derived` implmentations of the FromArgs trait.
Configuration menu - View commit details
-
Copy full SHA for 8df0bf2 - Browse repository at this point
Copy the full SHA 8df0bf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6027f97 - Browse repository at this point
Copy the full SHA 6027f97View commit details