# File lib/fastcst/ui.rb, line 47 47: def Shell.start 48: # trap the INT signl so we can gracefully exit 49: 50: puts "Welcome to the FastCST shell. Enter quit to exit or type CTRL-D." 51: prompt 52: 53: $stdin.each do |line| 54: begin 55: 56: args = Shellwords.shellwords(line) 57: 58: if args.length > 0 59: if args[0] == "quit" 60: exit 0 61: else 62: CommandRegistry.instance.run args 63: end 64: end 65: rescue 66: puts "ERROR: #$!" 67: raise 68: end 69: 70: prompt 71: end 72: end