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.



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

def initialize
  @subcommands = {
    "driver" => create_driver_subcommand
  }.freeze
  @root_command = create_root_command
end

Instance Attribute Details

#root_commandObject (readonly)

Root command Kintsugi CLI.



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

def root_command
  @root_command
end

#subcommandsObject (readonly)

Subcommands of Kintsugi CLI.



13
14
15
# File 'lib/kintsugi/cli.rb', line 13

def subcommands
  @subcommands
end