Class: Kintsugi::CLI

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeCLI

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_commandObject (readonly)

Root command of Kintsugi CLI.



18
19
20
# File 'lib/kintsugi/cli.rb', line 18

def root_command
  @root_command
end

#subcommandsObject (readonly)

Subcommands of Kintsugi CLI.



15
16
17
# File 'lib/kintsugi/cli.rb', line 15

def subcommands
  @subcommands
end