Module: Zillabyte::CLI

Extended by:
Helpers
Defined in:
lib/zillabyte/cli/config.rb,
lib/zillabyte-cli/version.rb,
lib/zillabyte/cli.rb

Defined Under Namespace

Modules: Config

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Methods included from Helpers

add_git_remote, app, ask, create_git_remote, display, error, extract_app_from_git_config, extract_app_in_dir, format_with_bang, get_flow_name, git, handle_downloading_manifest, has_git?, longest, read_multiline, with_tty

Class Method Details

.start(*args) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/zillabyte/cli.rb', line 21

def self.start(*args)
  begin
    command = args.shift.strip rescue "help"
    Zillabyte::Command.load
    Zillabyte::Command.run(command, args)
  rescue Interrupt
    `stty icanon echo`
    error("Command cancelled.")
  rescue => error
    raise
    #display(error)
    #exit(1)
  end
end