Class: Cloudit::CLI
- Inherits:
-
Object
- Object
- Cloudit::CLI
- Defined in:
- lib/cloudit/cli.rb
Class Method Summary collapse
Class Method Details
.start(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cloudit/cli.rb', line 6 def self.start(*args) $stdin.sync = true if $stdin.isatty $stdout.sync = true if $stdout.isatty if args[0] && !args[0].include?('-') command = args.shift.strip rescue nil else nil end Cloudit::Command.load Cloudit::Command.run(command, args) end |