styx-api/CLI to Boutiques

Create a Boutiques descriptor for a Python CLI based on `argparse` or `click`

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
parser-typeType of parser to serialize. Either "argparse" or "click".yesargparse
parser-locationModule path to and name of function that produces the argparse.ArgumentParser or click.Command objects. E.g., "my_package.my_module:my_func_name"yes
prog-nameProgram name to use. Highly recommended if the name is not explicitly set in the parser source code.no
output-pathWhere the output Boutiques description file should be writtenyes
open-prWhether to open a pull request with the generated descriptor. If this is set to true (default), a GitHub token must be provided as well.notrue
tokenGitHub token with write permissions for "contents" and "pull-requests". Required if open-pr is true.no
click-parent-locationModule path to and name of function that produces the click.Group object that contains the click.Command object to serialize. E.g., "my_package.my_module:my_func_name". This is needed for nested commands.no
exclude-versionWhether to exclude the tool-version field in the Boutiques descriptor even if version information is available. This is enabled by default because dynamic versioning schemes can cause the descriptor to be updated on every commit.notrue
updates-filePath to a JSON file with updates to apply to the generated Boutiques descriptor. The file should contain a map of dot/bracket paths to values (e.g. {"description": "new desc"}).no
updates-strJSON string with updates to apply to the generated Boutiques descriptor. The string should contain a map of dot/bracket paths to values (e.g. {"description": "new desc"}). Updates specified this way will override those in the updates file.no
validateWhether to validate the generated Boutiques descriptor. If this is set to true, the action will fail if the descriptor is invalid.nofalse
click-prog-nameProgram name to use for the Click parser type. By default this will be the name of the decorated function.no

no outputs