Class: Dapp::CLI
- Inherits:
-
Object
- Object
- Dapp::CLI
- Extended by:
- Helper::Cli
- Includes:
- Helper::Trivia, Mixlib::CLI
- Defined in:
- lib/dapp/cli.rb,
lib/dapp/cli/options/ssh.rb,
lib/dapp/cli/options/tag.rb,
lib/dapp/cli/command/base.rb,
lib/dapp/cli/command/slug.rb,
lib/dapp/cli/command/sample.rb,
lib/dapp/cli/command/update.rb,
lib/dapp/cli/command/sample/base.rb,
lib/dapp/cli/command/sample/list.rb,
lib/dapp/cli/command/sample/create.rb
Direct Known Subclasses
Command::Base, Command::Sample, Command::Update, Dimg::CLI::Command::Dimg, Dimg::CLI::Command::Dimg::BuildContext, Dimg::CLI::Command::Dimg::Stages, Kube::CLI::Command::Kube
Defined Under Namespace
Constant Summary collapse
- SUBCOMMANDS =
%w(dimg kube update sample slug).freeze
Class Attribute Summary collapse
-
.dapp_object ⇒ Object
Returns the value of attribute dapp_object.
Instance Method Summary collapse
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #run(argv = ARGV) ⇒ Object
Methods included from Helper::Cli
cli_wrapper, composite_options, in_validate!, list_msg_format, parse_options, parse_subcommand, prepare_subcommand, print_error_with_help_and_die!, required_argument, run_subcommand
Methods included from Helper::Trivia
#check_path?, #check_subpath?, #class_to_lowercase, class_to_lowercase, #delete_file, #ignore_path?, #ignore_path_base, #kwargs, #make_path, #path_checker, #search_file_upward
Constructor Details
Class Attribute Details
.dapp_object ⇒ Object
Returns the value of attribute dapp_object.
42 43 44 |
# File 'lib/dapp/cli.rb', line 42 def dapp_object @dapp_object end |
Instance Method Details
#run(argv = ARGV) ⇒ Object
52 53 54 55 56 |
# File 'lib/dapp/cli.rb', line 52 def run(argv = ARGV) argv, subcommand, subcommand_argv = self.class.parse_subcommand(self, argv) self.class.(self, argv) self.class.run_subcommand self, subcommand, subcommand_argv end |