Class: Kintsugi::CLI
- Inherits:
-
Object
- Object
- Kintsugi::CLI
- Defined in:
- lib/kintsugi/cli.rb
Overview
Class resposible for creating the logic of various options for Kintsugi CLI.
Defined Under Namespace
Classes: Command
Instance Attribute Summary collapse
-
#root_command ⇒ Object
readonly
Root command of Kintsugi CLI.
-
#subcommands ⇒ Object
readonly
Subcommands of Kintsugi CLI.
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
20 21 22 23 24 25 26 27 |
# File 'lib/kintsugi/cli.rb', line 20 def initialize @subcommands = { "driver" => create_driver_subcommand, "install-driver" => create_install_driver_subcommand, "uninstall-driver" => create_uninstall_driver_subcommand }.freeze @root_command = create_root_command end |
Instance Attribute Details
#root_command ⇒ Object (readonly)
Root command of Kintsugi CLI.
18 19 20 |
# File 'lib/kintsugi/cli.rb', line 18 def root_command @root_command end |
#subcommands ⇒ Object (readonly)
Subcommands of Kintsugi CLI.
15 16 17 |
# File 'lib/kintsugi/cli.rb', line 15 def subcommands @subcommands end |