src/cli/openstudio_cli.rb
# This constant maps commands to classes in this CLI and stores meta-data on them
This constant maps commands to classes in this CLI and stores meta-data on them
This constant maps commands to classes in this CLI and stores meta - data on them
def command_list
    {
        run: [ Proc.new { ::Run }, {primary: true, working: true}],
        gem_list: [ Proc.new { ::GemList }, {primary: false, working: true}],
        measure: [ Proc.new { ::Measure }, {primary: true, working: false}],
        update: [ Proc.new { ::Update }, {primary: true, working: false}],
        execute_ruby_script: [ Proc.new { ::ExecuteRubyScript }, {primary: false, working: true}],
        openstudio_version: [ Proc.new { ::OpenStudioVersion }, {primary: true, working: true}],
        energyplus_version: [ Proc.new { ::EnergyPlusVersion }, {primary: true, working: true}],
        ruby_version: [ Proc.new { ::RubyVersion }, {primary: false, working: true}],
        list_commands: [ Proc.new { ::ListCommands }, {primary: true, working: true}]
    }
  end
def command_list { run : [ Proc . new { :: Run } , { primary : true , working : true } ] , gem_list : [ Proc . new { :: GemList } , { primary : false , working : true } ] , measure : [ Proc . new { :: Measure } , { primary : true , working : false } ] , update : [ Proc . new { :: Update } , { primary : true , working : false } ] , execute_ruby_script : [ Proc . new { :: ExecuteRubyScript } , { primary : false , working : true } ] , openstudio_version : [ Proc . new { :: OpenStudioVersion } , { primary : true , working : true } ] , energyplus_version : [ Proc . new { :: EnergyPlusVersion } , { primary : true , working : true } ] , ruby_version : [ Proc . new { :: RubyVersion } , { primary : false , working : true } ] , list_commands : [ Proc . new { :: ListCommands } , { primary : true , working : true } ] } end
This constant maps commands to classes in this CLI and stores meta-data on them
This constant maps commands to classes in this CLI and stores meta - data on them
#apply_measure: [ Proc.new { ::ApplyMeasure }, {primary: true, working: false}], # DLM: remove, can do this with run #gem_install: [ Proc.new { ::InstallGem }, {primary: false, working: false}], # DLM: needs Ruby built with FFI #interactive_ruby: [ Proc.new { ::InteractiveRubyShell }, {primary: false, working: false}], # DLM: not working