From 7d4a3070534bdd5285b0caa07ce6fb555e775374 Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Fri, 1 May 2020 01:25:57 -0300 Subject: [PATCH] cmd/plg: update description for filters --- cmd/plg/main.go | 24 +++++++------ cmd/plg/testdata/TestCLI/darwin/check.ct | 12 +++---- cmd/plg/testdata/TestCLI/darwin/config.ct | 40 +++++++++++----------- cmd/plg/testdata/TestCLI/darwin/init.ct | 20 +++++------ cmd/plg/testdata/TestCLI/darwin/link.ct | 8 ++--- cmd/plg/testdata/TestCLI/darwin/show.ct | 8 ++--- cmd/plg/testdata/TestCLI/linux/check.ct | 12 +++---- cmd/plg/testdata/TestCLI/linux/config.ct | 40 +++++++++++----------- cmd/plg/testdata/TestCLI/linux/init.ct | 20 +++++------ cmd/plg/testdata/TestCLI/linux/link.ct | 8 ++--- cmd/plg/testdata/TestCLI/linux/show.ct | 8 ++--- cmd/plg/testdata/TestCLI/windows/check.ct | 12 +++---- cmd/plg/testdata/TestCLI/windows/config.ct | 40 +++++++++++----------- cmd/plg/testdata/TestCLI/windows/init.ct | 20 +++++------ cmd/plg/testdata/TestCLI/windows/link.ct | 8 ++--- cmd/plg/testdata/TestCLI/windows/show.ct | 8 ++--- 16 files changed, 145 insertions(+), 143 deletions(-) diff --git a/cmd/plg/main.go b/cmd/plg/main.go index 4409d85..fc44c41 100644 --- a/cmd/plg/main.go +++ b/cmd/plg/main.go @@ -75,6 +75,7 @@ func run() int { OptionDetails: cli.OptionDetails{ Description: "Comma-separated list of tags. Targets with these tags will also be checked.", Short: 't', + ArgLabel: "TAG 1,...,TAG n", }, Recipient: &root.check.tags, }, @@ -123,19 +124,18 @@ func run() int { }, "include": cli.VarOption{ OptionDetails: cli.OptionDetails{ - Description: "Comma-separated list of targets to be included when scanning the target.", - ArgLabel: "TARGET 1,...,TARGET n", + Description: "File to be included as a target. Repeat option to include more files.", + ArgLabel: "FILE", }, Recipient: &root.config.read.include, }, "exclude": cli.VarOption{ OptionDetails: cli.OptionDetails{ - Description: "Comma-separated list of targets to be excluded when scanning the target.", - ArgLabel: "TARGET 1,...,TARGET n", + Description: "File to be excluded from targets. Repeat option to exclude more files.", + ArgLabel: "FILE", }, Recipient: &root.config.read.exclude, }, - "scanhidden": cli.BoolOption{ OptionDetails: cli.OptionDetails{ Description: "Include hidden files when scanning the target.", @@ -146,7 +146,8 @@ func run() int { "tags": cli.VarOption{ OptionDetails: cli.OptionDetails{ Description: "Comma-separated list of tags to be set for the target.", - Short: 't', + Short: 't', + ArgLabel: "TAG 1,...,TAG n", }, Recipient: &root.config.tags, }, @@ -170,19 +171,18 @@ func run() int { }, "include": cli.VarOption{ OptionDetails: cli.OptionDetails{ - Description: "Comma-separated list of targets to be included from initialization.", - ArgLabel: "TARGET 1,...,TARGET n", + Description: "File to be included as a target. Repeat option to include more files.", + ArgLabel: "FILE", }, Recipient: &root.init.read.include, }, "exclude": cli.VarOption{ OptionDetails: cli.OptionDetails{ - Description: "Comma-separated list of targets to be excluded from initialization.", - ArgLabel: "TARGET 1,...,TARGET n", + Description: "File to be excluded from targets. Repeat option to exclude more files.", + ArgLabel: "FILE", }, Recipient: &root.init.read.exclude, }, - "hidden": cli.BoolOption{ OptionDetails: cli.OptionDetails{ Description: "Include hidden files on initialization.", @@ -201,6 +201,7 @@ func run() int { OptionDetails: cli.OptionDetails{ Description: "Comma-separated list of tags. Targets with these tags will also be linked.", Short: 't', + ArgLabel: "TAG 1,...,TAG n", }, Recipient: &root.link.tags, }, @@ -214,6 +215,7 @@ func run() int { OptionDetails: cli.OptionDetails{ Description: "Comma-separated list of tags. Targets with these tags will also be shown.", Short: 't', + ArgLabel: "TAG 1,...,TAG n", }, Recipient: &root.show.tags, }, diff --git a/cmd/plg/testdata/TestCLI/darwin/check.ct b/cmd/plg/testdata/TestCLI/darwin/check.ct index 56a0839..a61078d 100644 --- a/cmd/plg/testdata/TestCLI/darwin/check.ct +++ b/cmd/plg/testdata/TestCLI/darwin/check.ct @@ -5,9 +5,9 @@ USAGE: check [OPTIONS] OPTIONS: - -f, -fail Return an error if there are any conflicts. - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. + -f, -fail Return an error if there are any conflicts. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. $ plg check -h Check the status of your dotfiles. @@ -16,9 +16,9 @@ USAGE: check [OPTIONS] OPTIONS: - -f, -fail Return an error if there are any conflicts. - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. + -f, -fail Return an error if there are any conflicts. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. $ plg check --> FAIL plg: open pilgo.yml: no such file or directory diff --git a/cmd/plg/testdata/TestCLI/darwin/config.ct b/cmd/plg/testdata/TestCLI/darwin/config.ct index e419609..bb55990 100644 --- a/cmd/plg/testdata/TestCLI/darwin/config.ct +++ b/cmd/plg/testdata/TestCLI/darwin/config.ct @@ -5,16 +5,16 @@ USAGE: config [OPTIONS] [TARGET] OPTIONS: - -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. - -exclude Comma-separated list of targets to be excluded when scanning the target. - -f, -flatten Prevent the target from being included in the link name. - -h, -help Print this help message. - -include Comma-separated list of targets to be included when scanning the target. - -l, -link Set the target's link name. - -s, -scandir Scan the target and set its files as its own targets. - -S, -scanhidden Include hidden files when scanning the target. - -t, -tags Comma-separated list of tags to be set for the target. - -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. + -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -flatten Prevent the target from being included in the link name. + -h, -help Print this help message. + -include File to be included as a target. Repeat option to include more files. + -l, -link Set the target's link name. + -s, -scandir Scan the target and set its files as its own targets. + -S, -scanhidden Include hidden files when scanning the target. + -t, -tags Comma-separated list of tags to be set for the target. + -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. $ plg config -h Configure a dotfile in the configuration file. @@ -23,16 +23,16 @@ USAGE: config [OPTIONS] [TARGET] OPTIONS: - -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. - -exclude Comma-separated list of targets to be excluded when scanning the target. - -f, -flatten Prevent the target from being included in the link name. - -h, -help Print this help message. - -include Comma-separated list of targets to be included when scanning the target. - -l, -link Set the target's link name. - -s, -scandir Scan the target and set its files as its own targets. - -S, -scanhidden Include hidden files when scanning the target. - -t, -tags Comma-separated list of tags to be set for the target. - -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. + -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -flatten Prevent the target from being included in the link name. + -h, -help Print this help message. + -include File to be included as a target. Repeat option to include more files. + -l, -link Set the target's link name. + -s, -scandir Scan the target and set its files as its own targets. + -S, -scanhidden Include hidden files when scanning the target. + -t, -tags Comma-separated list of tags to be set for the target. + -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. $ mkdir targets $ mkdir links diff --git a/cmd/plg/testdata/TestCLI/darwin/init.ct b/cmd/plg/testdata/TestCLI/darwin/init.ct index 7d0e6ca..b1d95e9 100644 --- a/cmd/plg/testdata/TestCLI/darwin/init.ct +++ b/cmd/plg/testdata/TestCLI/darwin/init.ct @@ -57,11 +57,11 @@ USAGE: init [OPTIONS] OPTIONS: - -exclude Comma-separated list of targets to be excluded from initialization. - -f, -force Overwrite the existing configuration file. - -h, -help Print this help message. - -H, -hidden Include hidden files on initialization. - -include Comma-separated list of targets to be included from initialization. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -force Overwrite the existing configuration file. + -h, -help Print this help message. + -H, -hidden Include hidden files on initialization. + -include File to be included as a target. Repeat option to include more files. $ plg init -h Initialize a configuration file. @@ -70,8 +70,8 @@ USAGE: init [OPTIONS] OPTIONS: - -exclude Comma-separated list of targets to be excluded from initialization. - -f, -force Overwrite the existing configuration file. - -h, -help Print this help message. - -H, -hidden Include hidden files on initialization. - -include Comma-separated list of targets to be included from initialization. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -force Overwrite the existing configuration file. + -h, -help Print this help message. + -H, -hidden Include hidden files on initialization. + -include File to be included as a target. Repeat option to include more files. diff --git a/cmd/plg/testdata/TestCLI/darwin/link.ct b/cmd/plg/testdata/TestCLI/darwin/link.ct index ea786cb..2f7efba 100644 --- a/cmd/plg/testdata/TestCLI/darwin/link.ct +++ b/cmd/plg/testdata/TestCLI/darwin/link.ct @@ -5,8 +5,8 @@ USAGE: link [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. $ plg link -h Link your dotfiles as set in the configuration file. @@ -15,8 +15,8 @@ USAGE: link [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. $ plg link --> FAIL plg: open pilgo.yml: no such file or directory diff --git a/cmd/plg/testdata/TestCLI/darwin/show.ct b/cmd/plg/testdata/TestCLI/darwin/show.ct index 2f044aa..feaf7d8 100644 --- a/cmd/plg/testdata/TestCLI/darwin/show.ct +++ b/cmd/plg/testdata/TestCLI/darwin/show.ct @@ -5,8 +5,8 @@ USAGE: show [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. $ plg show -h Show your dotfiles in a tree view. @@ -15,8 +15,8 @@ USAGE: show [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. $ plg show --> FAIL plg: open pilgo.yml: no such file or directory diff --git a/cmd/plg/testdata/TestCLI/linux/check.ct b/cmd/plg/testdata/TestCLI/linux/check.ct index 56a0839..a61078d 100644 --- a/cmd/plg/testdata/TestCLI/linux/check.ct +++ b/cmd/plg/testdata/TestCLI/linux/check.ct @@ -5,9 +5,9 @@ USAGE: check [OPTIONS] OPTIONS: - -f, -fail Return an error if there are any conflicts. - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. + -f, -fail Return an error if there are any conflicts. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. $ plg check -h Check the status of your dotfiles. @@ -16,9 +16,9 @@ USAGE: check [OPTIONS] OPTIONS: - -f, -fail Return an error if there are any conflicts. - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. + -f, -fail Return an error if there are any conflicts. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. $ plg check --> FAIL plg: open pilgo.yml: no such file or directory diff --git a/cmd/plg/testdata/TestCLI/linux/config.ct b/cmd/plg/testdata/TestCLI/linux/config.ct index ae37dbf..55f7c7c 100644 --- a/cmd/plg/testdata/TestCLI/linux/config.ct +++ b/cmd/plg/testdata/TestCLI/linux/config.ct @@ -5,16 +5,16 @@ USAGE: config [OPTIONS] [TARGET] OPTIONS: - -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. - -exclude Comma-separated list of targets to be excluded when scanning the target. - -f, -flatten Prevent the target from being included in the link name. - -h, -help Print this help message. - -include Comma-separated list of targets to be included when scanning the target. - -l, -link Set the target's link name. - -s, -scandir Scan the target and set its files as its own targets. - -S, -scanhidden Include hidden files when scanning the target. - -t, -tags Comma-separated list of tags to be set for the target. - -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. + -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -flatten Prevent the target from being included in the link name. + -h, -help Print this help message. + -include File to be included as a target. Repeat option to include more files. + -l, -link Set the target's link name. + -s, -scandir Scan the target and set its files as its own targets. + -S, -scanhidden Include hidden files when scanning the target. + -t, -tags Comma-separated list of tags to be set for the target. + -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. $ plg config -h Configure a dotfile in the configuration file. @@ -23,16 +23,16 @@ USAGE: config [OPTIONS] [TARGET] OPTIONS: - -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. - -exclude Comma-separated list of targets to be excluded when scanning the target. - -f, -flatten Prevent the target from being included in the link name. - -h, -help Print this help message. - -include Comma-separated list of targets to be included when scanning the target. - -l, -link Set the target's link name. - -s, -scandir Scan the target and set its files as its own targets. - -S, -scanhidden Include hidden files when scanning the target. - -t, -tags Comma-separated list of tags to be set for the target. - -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. + -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -flatten Prevent the target from being included in the link name. + -h, -help Print this help message. + -include File to be included as a target. Repeat option to include more files. + -l, -link Set the target's link name. + -s, -scandir Scan the target and set its files as its own targets. + -S, -scanhidden Include hidden files when scanning the target. + -t, -tags Comma-separated list of tags to be set for the target. + -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. $ mkdir targets $ mkdir links diff --git a/cmd/plg/testdata/TestCLI/linux/init.ct b/cmd/plg/testdata/TestCLI/linux/init.ct index 7d0e6ca..b1d95e9 100644 --- a/cmd/plg/testdata/TestCLI/linux/init.ct +++ b/cmd/plg/testdata/TestCLI/linux/init.ct @@ -57,11 +57,11 @@ USAGE: init [OPTIONS] OPTIONS: - -exclude Comma-separated list of targets to be excluded from initialization. - -f, -force Overwrite the existing configuration file. - -h, -help Print this help message. - -H, -hidden Include hidden files on initialization. - -include Comma-separated list of targets to be included from initialization. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -force Overwrite the existing configuration file. + -h, -help Print this help message. + -H, -hidden Include hidden files on initialization. + -include File to be included as a target. Repeat option to include more files. $ plg init -h Initialize a configuration file. @@ -70,8 +70,8 @@ USAGE: init [OPTIONS] OPTIONS: - -exclude Comma-separated list of targets to be excluded from initialization. - -f, -force Overwrite the existing configuration file. - -h, -help Print this help message. - -H, -hidden Include hidden files on initialization. - -include Comma-separated list of targets to be included from initialization. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -force Overwrite the existing configuration file. + -h, -help Print this help message. + -H, -hidden Include hidden files on initialization. + -include File to be included as a target. Repeat option to include more files. diff --git a/cmd/plg/testdata/TestCLI/linux/link.ct b/cmd/plg/testdata/TestCLI/linux/link.ct index ea786cb..2f7efba 100644 --- a/cmd/plg/testdata/TestCLI/linux/link.ct +++ b/cmd/plg/testdata/TestCLI/linux/link.ct @@ -5,8 +5,8 @@ USAGE: link [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. $ plg link -h Link your dotfiles as set in the configuration file. @@ -15,8 +15,8 @@ USAGE: link [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. $ plg link --> FAIL plg: open pilgo.yml: no such file or directory diff --git a/cmd/plg/testdata/TestCLI/linux/show.ct b/cmd/plg/testdata/TestCLI/linux/show.ct index 2f044aa..feaf7d8 100644 --- a/cmd/plg/testdata/TestCLI/linux/show.ct +++ b/cmd/plg/testdata/TestCLI/linux/show.ct @@ -5,8 +5,8 @@ USAGE: show [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. $ plg show -h Show your dotfiles in a tree view. @@ -15,8 +15,8 @@ USAGE: show [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. $ plg show --> FAIL plg: open pilgo.yml: no such file or directory diff --git a/cmd/plg/testdata/TestCLI/windows/check.ct b/cmd/plg/testdata/TestCLI/windows/check.ct index 322efa7..fdf0ccf 100644 --- a/cmd/plg/testdata/TestCLI/windows/check.ct +++ b/cmd/plg/testdata/TestCLI/windows/check.ct @@ -5,9 +5,9 @@ USAGE: check [OPTIONS] OPTIONS: - -f, -fail Return an error if there are any conflicts. - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. + -f, -fail Return an error if there are any conflicts. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. $ plg check -h Check the status of your dotfiles. @@ -16,9 +16,9 @@ USAGE: check [OPTIONS] OPTIONS: - -f, -fail Return an error if there are any conflicts. - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. + -f, -fail Return an error if there are any conflicts. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be checked. $ plg check --> FAIL plg: open pilgo.yml: The system cannot find the file specified. diff --git a/cmd/plg/testdata/TestCLI/windows/config.ct b/cmd/plg/testdata/TestCLI/windows/config.ct index 6626f29..6eddf45 100644 --- a/cmd/plg/testdata/TestCLI/windows/config.ct +++ b/cmd/plg/testdata/TestCLI/windows/config.ct @@ -5,16 +5,16 @@ USAGE: config [OPTIONS] [TARGET] OPTIONS: - -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. - -exclude Comma-separated list of targets to be excluded when scanning the target. - -f, -flatten Prevent the target from being included in the link name. - -h, -help Print this help message. - -include Comma-separated list of targets to be included when scanning the target. - -l, -link Set the target's link name. - -s, -scandir Scan the target and set its files as its own targets. - -S, -scanhidden Include hidden files when scanning the target. - -t, -tags Comma-separated list of tags to be set for the target. - -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. + -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -flatten Prevent the target from being included in the link name. + -h, -help Print this help message. + -include File to be included as a target. Repeat option to include more files. + -l, -link Set the target's link name. + -s, -scandir Scan the target and set its files as its own targets. + -S, -scanhidden Include hidden files when scanning the target. + -t, -tags Comma-separated list of tags to be set for the target. + -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. $ plg config -h Configure a dotfile in the configuration file. @@ -23,16 +23,16 @@ USAGE: config [OPTIONS] [TARGET] OPTIONS: - -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. - -exclude Comma-separated list of targets to be excluded when scanning the target. - -f, -flatten Prevent the target from being included in the link name. - -h, -help Print this help message. - -include Comma-separated list of targets to be included when scanning the target. - -l, -link Set the target's link name. - -s, -scandir Scan the target and set its files as its own targets. - -S, -scanhidden Include hidden files when scanning the target. - -t, -tags Comma-separated list of tags to be set for the target. - -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. + -b, -basedir Set the target's base directory. Works recursively for all nested targets, unless overridden. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -flatten Prevent the target from being included in the link name. + -h, -help Print this help message. + -include File to be included as a target. Repeat option to include more files. + -l, -link Set the target's link name. + -s, -scandir Scan the target and set its files as its own targets. + -S, -scanhidden Include hidden files when scanning the target. + -t, -tags Comma-separated list of tags to be set for the target. + -H, -usehome Use home directory as the target's base directory and recursively for all nested targets, unless overridden. $ mkdir targets $ mkdir links diff --git a/cmd/plg/testdata/TestCLI/windows/init.ct b/cmd/plg/testdata/TestCLI/windows/init.ct index 7d0e6ca..b1d95e9 100644 --- a/cmd/plg/testdata/TestCLI/windows/init.ct +++ b/cmd/plg/testdata/TestCLI/windows/init.ct @@ -57,11 +57,11 @@ USAGE: init [OPTIONS] OPTIONS: - -exclude Comma-separated list of targets to be excluded from initialization. - -f, -force Overwrite the existing configuration file. - -h, -help Print this help message. - -H, -hidden Include hidden files on initialization. - -include Comma-separated list of targets to be included from initialization. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -force Overwrite the existing configuration file. + -h, -help Print this help message. + -H, -hidden Include hidden files on initialization. + -include File to be included as a target. Repeat option to include more files. $ plg init -h Initialize a configuration file. @@ -70,8 +70,8 @@ USAGE: init [OPTIONS] OPTIONS: - -exclude Comma-separated list of targets to be excluded from initialization. - -f, -force Overwrite the existing configuration file. - -h, -help Print this help message. - -H, -hidden Include hidden files on initialization. - -include Comma-separated list of targets to be included from initialization. + -exclude File to be excluded from targets. Repeat option to exclude more files. + -f, -force Overwrite the existing configuration file. + -h, -help Print this help message. + -H, -hidden Include hidden files on initialization. + -include File to be included as a target. Repeat option to include more files. diff --git a/cmd/plg/testdata/TestCLI/windows/link.ct b/cmd/plg/testdata/TestCLI/windows/link.ct index ab93620..ea2fc1c 100644 --- a/cmd/plg/testdata/TestCLI/windows/link.ct +++ b/cmd/plg/testdata/TestCLI/windows/link.ct @@ -5,8 +5,8 @@ USAGE: link [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. $ plg link -h Link your dotfiles as set in the configuration file. @@ -15,8 +15,8 @@ USAGE: link [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be linked. $ plg link --> FAIL plg: open pilgo.yml: The system cannot find the file specified. diff --git a/cmd/plg/testdata/TestCLI/windows/show.ct b/cmd/plg/testdata/TestCLI/windows/show.ct index df09a74..4157122 100644 --- a/cmd/plg/testdata/TestCLI/windows/show.ct +++ b/cmd/plg/testdata/TestCLI/windows/show.ct @@ -5,8 +5,8 @@ USAGE: show [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. $ plg show -h Show your dotfiles in a tree view. @@ -15,8 +15,8 @@ USAGE: show [OPTIONS] OPTIONS: - -h, -help Print this help message. - -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. + -h, -help Print this help message. + -t, -tags Comma-separated list of tags. Targets with these tags will also be shown. $ plg show --> FAIL plg: open pilgo.yml: The system cannot find the file specified.