mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-05 07:49:10 -07:00
pipx - add suffix parameter (#8675)
* initial commit * add changelog frag * Add idempotency when using suffix
This commit is contained in:
parent
132faeae34
commit
5b2711bbd3
4 changed files with 71 additions and 15 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue