Class: MGit::CLI
Instance Method Summary collapse
Methods included from Output
#perror, #pinfo, #psystem, #ptable, #pwarn
Instance Method Details
#start ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/mgit/cli.rb', line 5 def start fail NoCommandError if ARGV.size == 0 MGit.init # Run command, consuming its name from the list of arguments. Command.execute(ARGV.shift, ARGV) rescue UsageError => e perror e.to_s rescue GitError => e perror e.to_s end |