mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
clean up doc strings for pacman module
This commit is contained in:
parent
9c93c5419f
commit
c8f0bea2b0
@ -7,6 +7,9 @@ def list_pkgs():
|
|||||||
'''
|
'''
|
||||||
List the packages currently installed in a dict:
|
List the packages currently installed in a dict:
|
||||||
{'<package_name>': '<version>'}
|
{'<package_name>': '<version>'}
|
||||||
|
|
||||||
|
CLI Example:
|
||||||
|
salt '*' pacman.list_pkgs
|
||||||
'''
|
'''
|
||||||
cmd = 'pacman -Q'
|
cmd = 'pacman -Q'
|
||||||
ret = {}
|
ret = {}
|
||||||
@ -24,6 +27,9 @@ def refresh_db():
|
|||||||
'''
|
'''
|
||||||
Just run a pacman -Sy, return a dict:
|
Just run a pacman -Sy, return a dict:
|
||||||
{'<database name>': Bool}
|
{'<database name>': Bool}
|
||||||
|
|
||||||
|
CLI Example:
|
||||||
|
salt '*' pacman.refresh_db
|
||||||
'''
|
'''
|
||||||
cmd = 'pacman -Sy'
|
cmd = 'pacman -Sy'
|
||||||
ret = {}
|
ret = {}
|
||||||
@ -49,6 +55,9 @@ def install(pkg, refresh=False):
|
|||||||
Return a dict containing the new package names and versions:
|
Return a dict containing the new package names and versions:
|
||||||
{'<package>': {'old': '<old-version>',
|
{'<package>': {'old': '<old-version>',
|
||||||
'new': '<new-version>']}
|
'new': '<new-version>']}
|
||||||
|
|
||||||
|
CLI Example:
|
||||||
|
salt '*' pacman.install <package name>
|
||||||
'''
|
'''
|
||||||
old = list_pkgs()
|
old = list_pkgs()
|
||||||
cmd = 'pacman -S --noprogressbar --noconfirm ' + pkg
|
cmd = 'pacman -S --noprogressbar --noconfirm ' + pkg
|
||||||
@ -79,6 +88,9 @@ def upgrade():
|
|||||||
Return a dict containing the new package names and versions:
|
Return a dict containing the new package names and versions:
|
||||||
{'<package>': {'old': '<old-version>',
|
{'<package>': {'old': '<old-version>',
|
||||||
'new': '<new-version>']}
|
'new': '<new-version>']}
|
||||||
|
|
||||||
|
CLI Example:
|
||||||
|
salt '*' pacman.upgrade
|
||||||
'''
|
'''
|
||||||
old = list_pkgs()
|
old = list_pkgs()
|
||||||
cmd = 'pacman -Syu --noprogressbar --noconfirm '
|
cmd = 'pacman -Syu --noprogressbar --noconfirm '
|
||||||
|
Loading…
Reference in New Issue
Block a user