Skip to content

Commit

Permalink
fix typos in online help
Browse files Browse the repository at this point in the history
  • Loading branch information
camandel committed Sep 26, 2019
1 parent 3139361 commit 7998e52
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectgroupsecretcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func init() {

flags.StringVar(&secretCreateOpts.parentRef, "projectgroup", "", "project group id or full path")
flags.StringVarP(&secretCreateOpts.name, "name", "n", "", "secret name")
flags.StringVarP(&secretCreateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin`)
flags.StringVarP(&secretCreateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin)`)

if err := cmdProjectGroupSecretCreate.MarkFlagRequired("projectgroup"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectgroupsecretupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func init() {
flags.StringVar(&secretUpdateOpts.parentRef, "projectgroup", "", "project group id or full path")
flags.StringVarP(&secretUpdateOpts.name, "name", "n", "", "secret name")
flags.StringVarP(&secretUpdateOpts.newName, "new-name", "", "", "secret new name")
flags.StringVarP(&secretUpdateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin`)
flags.StringVarP(&secretUpdateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin)`)

if err := cmdProjectGroupSecretUpdate.MarkFlagRequired("projectgroup"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectgroupvariablecreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func init() {

flags.StringVar(&variableCreateOpts.parentRef, "projectgroup", "", "project group id or full path")
flags.StringVarP(&variableCreateOpts.name, "name", "n", "", "variable name")
flags.StringVarP(&variableCreateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin`)
flags.StringVarP(&variableCreateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin)`)

if err := cmdProjectGroupVariableCreate.MarkFlagRequired("projectgroup"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectgroupvariableupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func init() {
flags.StringVar(&variableUpdateOpts.parentRef, "projectgroup", "", "project group id or full path")
flags.StringVarP(&variableUpdateOpts.name, "name", "n", "", "variable name")
flags.StringVarP(&variableUpdateOpts.newName, "new-name", "", "", "variable new name")
flags.StringVarP(&variableUpdateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin`)
flags.StringVarP(&variableUpdateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin)`)

if err := cmdProjectGroupVariableUpdate.MarkFlagRequired("projectgroup"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var projectListOpts projectListOptions
func init() {
flags := cmdProjectList.Flags()

flags.StringVar(&projectListOpts.parentPath, "parent", "", `project group path (i.e "org/org01" for root project group in org01, "/user/user01/group01/subgroub01") or project group id`)
flags.StringVar(&projectListOpts.parentPath, "parent", "", `project group path (i.e "org/org01" for root project group in org01, "user/user01/group01/subgroub01") or project group id`)

if err := cmdProjectList.MarkFlagRequired("parent"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectreconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

var cmdProjectReconfig = &cobra.Command{
Use: "reconfig",
Short: "reconfigures a project remote (reinstalls ssh deploy key and webhooks",
Short: "reconfigures a project remote (reinstalls ssh deploy key and webhooks)",
Run: func(cmd *cobra.Command, args []string) {
if err := projectReconfig(cmd, args); err != nil {
log.Fatalf("err: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectsecretcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func init() {

flags.StringVar(&secretCreateOpts.parentRef, "project", "", "project id or full path")
flags.StringVarP(&secretCreateOpts.name, "name", "n", "", "secret name")
flags.StringVarP(&secretCreateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin`)
flags.StringVarP(&secretCreateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin)`)

if err := cmdProjectSecretCreate.MarkFlagRequired("project"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectsecretupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func init() {
flags.StringVar(&secretUpdateOpts.parentRef, "project", "", "project id or full path")
flags.StringVarP(&secretUpdateOpts.name, "name", "n", "", "secret name")
flags.StringVarP(&secretUpdateOpts.newName, "new-name", "", "", "secret new name")
flags.StringVarP(&secretUpdateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin`)
flags.StringVarP(&secretUpdateOpts.file, "file", "f", "", `yaml file containing the secret data (use "-" to read from stdin)`)

if err := cmdProjectSecretUpdate.MarkFlagRequired("project"); err != nil {
log.Fatal(err)
Expand Down
6 changes: 3 additions & 3 deletions cmd/agola/cmd/projectvariablecreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (

var cmdProjectVariableCreate = &cobra.Command{
Use: "create",
Short: "create a project group variable",
Long: `create a project group variable
Short: "create a project local variable",
Long: `create a project local variable
The variable values should be provided by a yaml document. Examples:
Expand Down Expand Up @@ -73,7 +73,7 @@ func init() {

flags.StringVar(&variableCreateOpts.parentRef, "project", "", "project id or full path")
flags.StringVarP(&variableCreateOpts.name, "name", "n", "", "variable name")
flags.StringVarP(&variableCreateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin`)
flags.StringVarP(&variableCreateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin)`)

if err := cmdProjectVariableCreate.MarkFlagRequired("project"); err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agola/cmd/projectvariableupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {
flags.StringVar(&variableUpdateOpts.parentRef, "project", "", "project id or full path")
flags.StringVarP(&variableUpdateOpts.name, "name", "n", "", "variable name")
flags.StringVarP(&variableUpdateOpts.newName, "new-name", "", "", "variable new name")
flags.StringVarP(&variableUpdateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin`)
flags.StringVarP(&variableUpdateOpts.file, "file", "f", "", `yaml file containing the variable definition (use "-" to read from stdin)`)

if err := cmdProjectVariableUpdate.MarkFlagRequired("project"); err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 7998e52

Please sign in to comment.