Class: CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/taf/cli.rb

Overview

Handles CLI argument parsing and command execution

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CLI

Returns a new instance of CLI.



8
9
10
11
12
13
14
# File 'lib/taf/cli.rb', line 8

def initialize(args)
  @args = args
  @mode = :default
  @file = nil
  @message = nil
  @taf = nil
end

Instance Method Details

#runObject



16
17
18
19
20
# File 'lib/taf/cli.rb', line 16

def run
  parse_options
  validate_options
  execute_command
end