class Azuki::CLI
Public Class Methods
start(*args)
click to toggle source
# File lib/azuki/cli.rb, line 18 def self.start(*args) begin if $stdin.isatty $stdin.sync = true end if $stdout.isatty $stdout.sync = true end command = args.shift.strip rescue "help" Azuki::Command.load Azuki::Command.run(command, args) rescue Interrupt `stty icanon echo` error("Command cancelled.") rescue => error styled_error(error) exit(1) end end