lib/magellan/cli/command.rb in magellan-cli-0.9.0 vs lib/magellan/cli/command.rb in magellan-cli-0.9.1

- old
+ new

@@ -54,15 +54,18 @@ Resources::MAPPING.each do |classname, name| desc "#{name} SUBCOMMAND ...ARGS", I18n.t(:manage_resource, scope: [:command, :cmd], resource: name.pluralize) subcommand name, ::Magellan::Cli::Resources.const_get(classname) end + desc "cloudsql_instance SUBCOMMAND ...ARGS", I18n.t(:manage_resource, scope: [:command, :cmd], resource: "cloudsql_instances") + subcommand "cloudsql_instance", ::Magellan::Cli::CloudsqlInstance + Messaging::MAPPING.each do |classname, name| desc "#{name} SUBCOMMAND ...ARGS", I18n.t(name.to_sym, scope: [:command, :cmd, :messaging]) subcommand name, ::Magellan::Cli::Messaging.const_get(classname) end - COMMAND_ORDER = %w[login] + Resources::MAPPING.values + Messaging::MAPPING.values + COMMAND_ORDER = %w[login] + Resources::MAPPING.values + %w[cloudsql_instance] + Messaging::MAPPING.values #desc "direct SUBCOMMAND ...ARGS", "Send request directly" #subcommand "direct", ::Magellan::Cli::Direct desc "login", I18n.t(:login, scope: [:command, :cmd])