pipx - add suffix parameter (#8675)

* initial commit

* add changelog frag

* Add idempotency when using suffix
This commit is contained in:
Alexei Znamensky 2024-08-08 01:00:26 +12:00 committed by GitHub
parent 132faeae34
commit 5b2711bbd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 71 additions and 15 deletions

View file

@ -28,7 +28,6 @@ def pipx_runner(module, command, **kwargs):
module,
command=command,
arg_formats=dict(
state=fmt.as_map(_state_map),
name=fmt.as_list(),
name_source=fmt.as_func(fmt.unpack_args(lambda n, s: [s] if s else [n])),
@ -43,6 +42,7 @@ def pipx_runner(module, command, **kwargs):
_list=fmt.as_fixed(['list', '--include-injected', '--json']),
editable=fmt.as_bool("--editable"),
pip_args=fmt.as_opt_eq_val('--pip-args'),
suffix=fmt.as_opt_val('--suffix'),
),
environ_update={'USE_EMOJI': '0'},
check_rc=True,