Runcommands

Latest version: v1.0a71

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

Scan your dependencies

Page 7 of 13

1.0a37

- Allow env-specific default args, which take precedence over top level default
args (the default default args).

1.0a36

- Default args read from config are now checked and a useful exception is
raised if an unknown arg is encountered.
- Fixed/improved handling of container args. This deconflates the type of
a container from the type of values it contains. It also allows commands to
use `*args` to collect an arbitrary number of positional args.
- Fixed handling of `--` on the command line. Now, each command can make use of
`--` to specify the end of options and that the remaining args are
positional.
- The command to run via the `local` or `remote` commands no longer needs to be
quoted on the command line.
- Improved parsing and expansion of grouped short options like `-xyz`.

1.0a35

- Upgraded PyYAML 3.13 => 5.1. Depending on your setup, this may require
upgrading PyYAML to 5.1 first before upgrading to this version of
RunCommands (e.g., if you have a command that wraps `pip install`).

1.0a34

- Arg values are now collected into tuples when appropriate--when an arg's
default value is a tuple or its type is explicitly set to `tuple`.
- Positional args can now be specified with a type of `dict`, `list`, or
`tuple`. Previously, specifying one of these types didn't work as expected
because only one value would be read from the command line and that value
would be converted to a `list` or `tuple` of characters (and using `dict`
would cause an error).
- Multiple short options can now be grouped on the command line like `abc`.
- The inverse option for `bool` args can now be disabled.
- Fixed some issues related to linting.

1.0a33

- Fixed precedence of globals in `run` command. In particular, globals passed
via the command line have higher precedence than globals specified in the
`envs` section of the config file.
- Fixed a logic bug in `util.misc._merge_dicts()`.

1.0a32

- Convert `cd` arg passed to `local` command to an absolute path via the
`abs_path` utility function. This is mainly so that asset paths like
`'package.module:file'` will be handled correctly.
- Normalize default arg names read from config file. E.g., if a command has
an arg named `dir_` with a trailing slash to avoid clashing with the builtin
`dir` function, allow the arg to specified as `dir` in the config file.

Page 7 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.