Class: Envs::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



5
6
7
# File 'lib/envs/cli.rb', line 5

def self.run
  new.run
end

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
# File 'lib/envs/cli.rb', line 9

def run
  global_opts = Trollop::options do
    banner "Manage environment variables on a per-project basis"
    opt :no_color, "Don't be colorized", :short => "-c"
    opt :root, "Project root directory", :short => "-r", :default => Dir.pwd
  end
  runner = Runner.new(global_opts)
  runner.run
end