Class: Dapp::CLI::Base
- Inherits:
-
CLI
- Object
- CLI
- Dapp::CLI::Base
- Defined in:
- lib/dapp/cli/base.rb
Overview
Base of CLI subcommands
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #run(argv = ARGV) ⇒ Object
Constructor Details
Instance Method Details
#run(argv = ARGV) ⇒ Object
49 50 51 52 |
# File 'lib/dapp/cli/base.rb', line 49 def run(argv = ARGV) self.class.(self, argv) Controller.new(cli_options: config, patterns: cli_arguments).public_send(class_to_lowercase) end |