Class: Qc::CLI
- Inherits:
-
Object
- Object
- Qc::CLI
- Defined in:
- lib/qc/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #run(argv) ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
3 4 |
# File 'lib/qc/cli.rb', line 3 def initialize end |
Instance Method Details
#run(argv) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/qc/cli.rb', line 6 def run(argv) = (argv) command = argv[0] client = Qc::CommandRunner.new(quant_connect_proxy, ) success = begin if command client.run(command.to_sym) else client.run_default end rescue StandardError => error puts "Error: #{error}" false end success end |