Skip to content

Commit

Permalink
Merge pull request #178 from nicolasbock/nick-1
Browse files Browse the repository at this point in the history
Fix help text for formatting options
  • Loading branch information
nicolasbock authored Aug 31, 2018
2 parents 285a93d + 84fdfe6 commit 34ceb6f
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions lib/crowbar/client/app/backup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ class Backup < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
4 changes: 2 additions & 2 deletions lib/crowbar/client/app/barclamp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ class Barclamp < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as json, a shortcut for --format table option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as plain text, a shortcut for --format table option"

method_option :filter,
type: :string,
Expand Down
4 changes: 2 additions & 2 deletions lib/crowbar/client/app/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ class Installer < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
12 changes: 6 additions & 6 deletions lib/crowbar/client/app/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ class Node < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down Expand Up @@ -125,13 +125,13 @@ def status
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down Expand Up @@ -190,13 +190,13 @@ def list
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format table option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
8 changes: 4 additions & 4 deletions lib/crowbar/client/app/proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class Proposal < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down Expand Up @@ -116,13 +116,13 @@ def list(barclamp)
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
4 changes: 2 additions & 2 deletions lib/crowbar/client/app/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class Repository < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
8 changes: 4 additions & 4 deletions lib/crowbar/client/app/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class Role < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down Expand Up @@ -113,13 +113,13 @@ def list(barclamp)
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
4 changes: 2 additions & 2 deletions lib/crowbar/client/app/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ def api(barclamp)
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down
12 changes: 6 additions & 6 deletions lib/crowbar/client/app/upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ class Upgrade < Base
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down Expand Up @@ -152,13 +152,13 @@ def services
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down Expand Up @@ -281,13 +281,13 @@ def backup(component)
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format json option"
desc: "Format output as json, a shortcut for --format json option"

method_option :plain,
type: :boolean,
default: false,
aliases: [],
desc: "Format output as table, a shortcut for --format plain option"
desc: "Format output as plain text, a shortcut for --format plain option"

method_option :filter,
type: :string,
Expand Down

0 comments on commit 34ceb6f

Please sign in to comment.