Skip to content

Commit

Permalink
place custom -ctl commands in name spaces
Browse files Browse the repository at this point in the history
Updating these -ctl commands so that they appear under appropriate
categories instead of floating up at the top of the help output without
any context.

Signed-off-by: Robb Kidd <[email protected]>
  • Loading branch information
robbkidd committed Aug 20, 2019
1 parent 3940d2c commit ba30765
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require '/opt/supermarket/embedded/service/omnibus-ctl/helpers/ctl_command_helper'
end

add_command 'console', 'Enter the rails console for Supermarket', 1 do
add_command_under_category 'console', 'general', 'Enter the rails console for Supermarket', 1 do
cmd_helper = CtlCommandHelper.new('console')
cmd_helper.must_run_as 'supermarket'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
end

# supermarket-ctl make_admin username
add_command 'make-admin', 'Make a Supermarket user an admin', 2 do
add_command_under_category 'make-admin', 'user-management', 'Make a Supermarket user an admin', 2 do
cmd_helper = CtlCommandHelper.new('make-admin')
cmd_helper.must_run_as 'supermarket'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'mixlib/shellout'
require 'optparse'

add_command 'test', 'Run the Supermarket installation test suite', 2 do
add_command_under_category 'test', 'general', 'Run the Supermarket installation test suite', 2 do
options = {}
OptionParser.new do |opts|
opts.on '-J', '--junit-xml PATH' do |junit_xml|
Expand Down

0 comments on commit ba30765

Please sign in to comment.