Skip to content

Commit c165fc5

Browse files
committed
docs: update config descriptions to align with user intent
1 parent ff24259 commit c165fc5

File tree

328 files changed

+1243
-1216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+1243
-1216
lines changed

cmd/juju/action/exec.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ func (c *execCommand) SetFlags(f *gnuflag.FlagSet) {
162162
"plain": c.printExecOutput,
163163
})
164164

165-
f.BoolVar(&c.all, "all", false, "Run the commands on all the machines")
166-
f.BoolVar(&c.operator, "operator", false, "Run the commands on the operator (k8s-only)")
167-
f.BoolVar(&c.parallel, "parallel", true, "Run the commands in parallel without first acquiring a lock")
168-
f.StringVar(&c.executionGroup, "execution-group", "", "Commands in the same execution group are run sequentially")
169-
f.Var(cmd.NewStringsValue(nil, &c.machines), "machine", "One or more machine ids")
170-
f.Var(cmd.NewStringsValue(nil, &c.applications), "a", "One or more application names")
165+
f.BoolVar(&c.all, "all", false, "Run the commands on all the machines.")
166+
f.BoolVar(&c.operator, "operator", false, "Run the commands on the operator (Kubernetes only).")
167+
f.BoolVar(&c.parallel, "parallel", true, "Run the commands in parallel without first acquiring a lock.")
168+
f.StringVar(&c.executionGroup, "execution-group", "", "Specify an execution group; commands in the same group are run sequentially.")
169+
f.Var(cmd.NewStringsValue(nil, &c.machines), "machine", "Specify one or more machine IDs.")
170+
f.Var(cmd.NewStringsValue(nil, &c.applications), "a", "Specify one or more application names.")
171171
f.Var(cmd.NewStringsValue(nil, &c.applications), "app", "")
172172
f.Var(cmd.NewStringsValue(nil, &c.applications), "application", "")
173-
f.Var(cmd.NewStringsValue(nil, &c.units), "u", "One or more unit ids")
173+
f.Var(cmd.NewStringsValue(nil, &c.units), "u", "Specify one or more unit IDs.")
174174
f.Var(cmd.NewStringsValue(nil, &c.units), "unit", "")
175175
}
176176

cmd/juju/action/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (c *listCommand) SetFlags(f *gnuflag.FlagSet) {
6464
"tabular": c.printTabular,
6565
"default": c.dummyDefault,
6666
})
67-
f.BoolVar(&c.fullSchema, "schema", false, "Display the full action schema")
67+
f.BoolVar(&c.fullSchema, "schema", false, "Display the full action schema.")
6868
}
6969

7070
func (c *listCommand) Info() *cmd.Info {

cmd/juju/action/listoperations.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ func (c *listOperationsCommand) SetFlags(f *gnuflag.FlagSet) {
7979
"plain": c.formatTabular,
8080
})
8181

82-
f.BoolVar(&c.utc, "utc", false, "Show times in UTC")
83-
f.Var(cmd.NewStringsValue(nil, &c.applicationNames), "applications", "Comma separated list of applications to filter on")
84-
f.Var(cmd.NewStringsValue(nil, &c.applicationNames), "apps", "Comma separated list of applications to filter on")
85-
f.Var(cmd.NewStringsValue(nil, &c.unitNames), "units", "Comma separated list of units to filter on")
86-
f.Var(cmd.NewStringsValue(nil, &c.machineNames), "machines", "Comma separated list of machines to filter on")
87-
f.Var(cmd.NewStringsValue(nil, &c.actionNames), "actions", "Comma separated list of actions names to filter on")
88-
f.Var(cmd.NewStringsValue(nil, &c.statusValues), "status", "Comma separated list of operation status values to filter on")
89-
f.UintVar(&c.limit, "limit", 0, "The maximum number of operations to return")
90-
f.UintVar(&c.offset, "offset", 0, "Return operations from offset onwards")
82+
f.BoolVar(&c.utc, "utc", false, "Show times in UTC.")
83+
f.Var(cmd.NewStringsValue(nil, &c.applicationNames), "applications", "Specify a comma-separated list of applications to filter on.")
84+
f.Var(cmd.NewStringsValue(nil, &c.applicationNames), "apps", "Specify a comma-separated list of applications to filter on.")
85+
f.Var(cmd.NewStringsValue(nil, &c.unitNames), "units", "Specify a comma-separated list of units to filter on.")
86+
f.Var(cmd.NewStringsValue(nil, &c.machineNames), "machines", "Specify a comma-separated list of machines to filter on.")
87+
f.Var(cmd.NewStringsValue(nil, &c.actionNames), "actions", "Specify a comma-separated list of actions names to filter on.")
88+
f.Var(cmd.NewStringsValue(nil, &c.statusValues), "status", "Specify a comma-separated list of operation status values to filter on.")
89+
f.UintVar(&c.limit, "limit", 0, "Specify the maximum number of operations to return.")
90+
f.UintVar(&c.offset, "offset", 0, "Specify the offset to start returning operations from.")
9191
}
9292

9393
func (c *listOperationsCommand) Info() *cmd.Info {
9494
return jujucmd.Info(&cmd.Info{
9595
Name: "operations",
96-
Purpose: "Lists pending, running, or completed operations for specified application, units, machines, or all.",
96+
Purpose: "List pending, running, or completed operations for specified application, units, machines, or all.",
9797
Doc: listOperationsDoc,
9898
Aliases: []string{"list-operations"},
9999
Examples: listOperationsExamples,

cmd/juju/action/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ const runExamples = `
103103
func (c *runCommand) SetFlags(f *gnuflag.FlagSet) {
104104
c.runCommandBase.SetFlags(f)
105105

106-
f.Var(&c.paramsYAML, "params", "Path to yaml-formatted params file")
107-
f.BoolVar(&c.parseStrings, "string-args", false, "Use raw string values of CLI args")
106+
f.Var(&c.paramsYAML, "params", "Specify the path to a yaml-formatted params file.")
107+
f.BoolVar(&c.parseStrings, "string-args", false, "Use raw string values of CLI args.")
108108
}
109109

110110
func (c *runCommand) Info() *cmd.Info {

cmd/juju/action/show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (c *showCommand) Info() *cmd.Info {
5858
info := jujucmd.Info(&cmd.Info{
5959
Name: "show-action",
6060
Args: "<application> <action>",
61-
Purpose: "Shows detailed information about an action.",
61+
Purpose: "Show detailed information about an action.",
6262
Doc: showActionDoc,
6363
Examples: showActionExamples,
6464
SeeAlso: []string{

cmd/juju/action/showoperation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ func (c *showOperationCommand) SetFlags(f *gnuflag.FlagSet) {
6363
"json": cmd.FormatJson,
6464
})
6565

66-
f.DurationVar(&c.wait, "wait", defaultOperationWait, "Wait for results")
67-
f.BoolVar(&c.watch, "watch", false, "Wait indefinitely for results")
68-
f.BoolVar(&c.utc, "utc", false, "Show times in UTC")
66+
f.DurationVar(&c.wait, "wait", defaultOperationWait, "Specify the maximum wait time for results.")
67+
f.BoolVar(&c.watch, "watch", false, "Wait indefinitely for results.")
68+
f.BoolVar(&c.utc, "utc", false, "Show times in UTC.")
6969
}
7070

7171
// Info implements Command.

cmd/juju/action/showtask.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ func (c *showTaskCommand) SetFlags(f *gnuflag.FlagSet) {
7575
"plain": printOutput,
7676
})
7777

78-
f.DurationVar(&c.wait, "wait", defaultTaskWait, "Maximum wait time for a task to complete")
79-
f.BoolVar(&c.watch, "watch", false, "Wait indefinitely for results")
80-
f.BoolVar(&c.utc, "utc", false, "Show times in UTC")
78+
f.DurationVar(&c.wait, "wait", defaultTaskWait, "Specify the maximum wait time for a task to complete.")
79+
f.BoolVar(&c.watch, "watch", false, "Wait indefinitely for results.")
80+
f.BoolVar(&c.utc, "utc", false, "Show times in UTC.")
8181
}
8282

8383
func (c *showTaskCommand) Info() *cmd.Info {

cmd/juju/agree/agree/agree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type agreeCommand struct {
7575
// SetFlags implements Command.SetFlags.
7676
func (c *agreeCommand) SetFlags(f *gnuflag.FlagSet) {
7777
c.CommandBase.SetFlags(f)
78-
f.BoolVar(&c.SkipTermContent, "yes", false, "Agree to terms non interactively")
78+
f.BoolVar(&c.SkipTermContent, "yes", false, "Agree to terms non-interactively.")
7979
}
8080

8181
// Info implements Command.Info.

cmd/juju/agree/listagreements/listagreements.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ type TermsServiceClient interface {
3434
}
3535

3636
const listAgreementsDoc = `
37+
List the terms that the user has agreed to.
38+
3739
Charms may require a user to accept its terms in order for it to be deployed.
3840
In other words, some applications may only be installed if a user agrees to
3941
accept some terms defined by the charm.
40-
41-
This command lists the terms that the user has agreed to.
4242
`
4343

4444
const listAgreementsExamples = `

cmd/juju/application/addunit.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ import (
2323
"github.com/juju/juju/rpc/params"
2424
)
2525

26-
var usageAddUnitSummary = `Adds one or more units to a deployed application.`
26+
var usageAddUnitSummary = `Add one or more units to a deployed application.`
2727

2828
var usageAddUnitDetails = `
29-
The ` + "`add-unit`" + ` command is used to scale out an application for improved performance or
30-
availability.
29+
Scale out an application for improved performance or availability.
3130
3231
Note: Some charms will seamlessly support horizontal scaling while others may need
3332
an additional application support (e.g. a separate load balancer). See the
@@ -94,7 +93,7 @@ type UnitCommandBase struct {
9493
}
9594

9695
func (c *UnitCommandBase) SetFlags(f *gnuflag.FlagSet) {
97-
f.IntVar(&c.NumUnits, "num-units", 1, "")
96+
f.IntVar(&c.NumUnits, "num-units", 1, "Set the number of units to add.")
9897
f.StringVar(&c.PlacementSpec, "to", "", "(Machine models only) Specify a comma-separated list of placement directives. If the length of this list is less than `-n`, the remaining units will be added in the default way (i.e., to new machines).")
9998
f.Var(attachStorageFlag{&c.AttachStorage}, "attach-storage", "Specify an existing storage volume to attach to the deployed unit.")
10099
}
@@ -158,7 +157,7 @@ func (c *addUnitCommand) Info() *cmd.Info {
158157

159158
func (c *addUnitCommand) SetFlags(f *gnuflag.FlagSet) {
160159
c.UnitCommandBase.SetFlags(f)
161-
f.IntVar(&c.NumUnits, "n", 1, "Specify the number of units to add.")
160+
f.IntVar(&c.NumUnits, "n", 1, "Set the number of units to add")
162161
}
163162

164163
func (c *addUnitCommand) Init(args []string) error {

0 commit comments

Comments
 (0)