mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
improve doc for list_pkgs
This commit is contained in:
parent
415654ee9e
commit
e3bb862a32
1 changed files with 14 additions and 2 deletions
|
@ -290,9 +290,21 @@ def version(*names, **kwargs):
|
|||
|
||||
def list_pkgs(versions_as_list=False, **kwargs):
|
||||
'''
|
||||
List the packages currently installed as a dict::
|
||||
List the packages currently installed as a dict with versions
|
||||
as a comma separated string::
|
||||
|
||||
{'<package_name>': '<version>'}
|
||||
{'<package_name>': '<version>[,<version>...]'}
|
||||
|
||||
versions_as_list:
|
||||
If set to true, the versions are provided as a list
|
||||
|
||||
{'<package_name>': ['<version>', '<version>']}
|
||||
|
||||
removed:
|
||||
not supported
|
||||
|
||||
purge_desired:
|
||||
not supported
|
||||
|
||||
CLI Example:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue