From b0aec50b9a0434ecf92942dcf2721edc2b60be8c Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 31 May 2016 20:58:55 +0400 Subject: [PATCH] Improve documentation for pkgng module (#2338) According to module checklist: - Descriptions should always start with a Capital letter and end with a full stop. - Ensure that you make use of U() for urls, C() for files and options, I() for params, M() for modules. --- packaging/os/pkgng.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/packaging/os/pkgng.py b/packaging/os/pkgng.py index 2b2f5e0b467..5583bb18ee5 100644 --- a/packaging/os/pkgng.py +++ b/packaging/os/pkgng.py @@ -32,53 +32,53 @@ version_added: "1.2" options: name: description: - - name of package to install/remove + - Name of package to install/remove. required: true state: description: - - state of the package + - State of the package. choices: [ 'present', 'absent' ] required: false default: present cached: description: - - use local package base or try to fetch an updated one + - Use local package base instead of fetching an updated one. choices: [ 'yes', 'no' ] required: false default: no annotation: description: - - a comma-separated list of keyvalue-pairs of the form - <+/-/:>[=]. A '+' denotes adding an annotation, a - '-' denotes removing an annotation, and ':' denotes modifying an + - A comma-separated list of keyvalue-pairs of the form + C(<+/-/:>[=]). A C(+) denotes adding an annotation, a + C(-) denotes removing an annotation, and C(:) denotes modifying an annotation. If setting or modifying annotations, a value must be provided. required: false version_added: "1.6" pkgsite: description: - - for pkgng versions before 1.1.4, specify packagesite to use - for downloading packages, if not specified, use settings from - /usr/local/etc/pkg.conf - for newer pkgng versions, specify a the name of a repository - configured in /usr/local/etc/pkg/repos + - For pkgng versions before 1.1.4, specify packagesite to use + for downloading packages. If not specified, use settings from + C(/usr/local/etc/pkg.conf). + - For newer pkgng versions, specify a the name of a repository + configured in C(/usr/local/etc/pkg/repos). required: false rootdir: description: - - for pkgng versions 1.5 and later, pkg will install all packages - within the specified root directory - - can not be used together with 'chroot' option + - For pkgng versions 1.5 and later, pkg will install all packages + within the specified root directory. + - Can not be used together with I(chroot) option. required: false chroot: version_added: "2.1" description: - - pkg will chroot in the specified environment - - can not be used together with 'rootdir' option + - Pkg will chroot in the specified environment. + - Can not be used together with I(rootdir) option. required: false autoremove: version_added: "2.2" description: - - remove automatically installed packages which are no longer needed + - Remove automatically installed packages which are no longer needed. required: false choices: [ "yes", "no" ] default: no