Class: JCF::CLI::Command
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- JCF::CLI::Command
- Defined in:
- lib/jcf/cli/command.rb
Direct Known Subclasses
JCF::CLI::Commands::CF::Metrics, JCF::CLI::Commands::CF::Organizations, JCF::CLI::Commands::CF::Quota, JCF::CLI::Commands::CF::ServiceBrokers, JCF::CLI::Commands::CF::ServiceInstances, JCF::CLI::Commands::CF::ServiceOfferings, JCF::CLI::Commands::CF::ServicePlans, JCF::CLI::Commands::CF::Services, JCF::CLI::Commands::CF::Spaces, JCF::CLI::Commands::CF::Users, JCF::CLI::Commands::Plugins, JCF::CLI::Commands::Version
Defined Under Namespace
Modules: Output
Class Method Summary collapse
-
.inherited(klass) ⇒ Object
mix in the global options.
Class Method Details
.inherited(klass) ⇒ Object
mix in the global options
26 27 28 29 30 31 32 |
# File 'lib/jcf/cli/command.rb', line 26 def self.inherited(klass) super klass.option :format, aliases: ["--format"], default: "text", values: %w[text json csv], desc: "Output format" klass.option :output, aliases: ["--output"], desc: "Output file" klass.prepend(Output) end |