Commandr

Latest version: v1.7.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.4.0

========
- Add support for Python 3.

1.3.2

========
- Fix issue when RunFunction tries to run a non-registerd command.

1.3.1

========
- Allow missing prefix for Bash Tab-completion.

1.3.0

========
- commandr.CommandrUsageException(my_message) can now be raised in a commandr
run function to print Usage.
- commandr.Usage(my_message) can now be called to print the Usage.
- If an argument has a default that is a list, Commandr will now allow multiple
values for that list.
- Adds support for Bash Tab-completion.

1.2.1

========
- The 'help' command has been added to give either the global help or help on
a specific command (help [command]).
- The option 'help_docs' was added to print __main__.__doc__ on help messages.
It defaults to True.
- The option 'main' has been added to SetOptions and command() to set a command
to get run when no command is supplied. Default is help.
- The option 'ignore_self' can now be passed in command() to override the global
value on a per function basis.

1.2.0

========
- Support command() decorator with no name argument, which will fall back to
the function's name.
- Use the capitalized letter for the second instance of a single letter flag.
- Use the first line of the docstring when listing all available commands.
- Add 'ignore_self' option, which will ignore functions arguments named 'self'.
- Add RunFunction() method to invoke a single explicit function, instead of
name dispatched commands.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.