Module: Molflow::CommandOptions
- Included in:
- CLI, Molflow::Commands::Install, Molflow::Commands::Jira
- Defined in:
- lib/molflow/command_options.rb
Instance Method Summary collapse
-
#install_options(key) ⇒ Object
molflow install.
- #jira_options(key) ⇒ Object
Instance Method Details
#install_options(key) ⇒ Object
molflow install
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/molflow/command_options.rb', line 5 def (key) case key when 'path' { aliases: ['-p'], type: :string, default: "#{ENV['HOME']}/.molflow", desc: 'Specify a configuration file path.' } end end |
#jira_options(key) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/molflow/command_options.rb', line 17 def (key) case key when 'user' { aliases: ['-u'], type: :string, default: 'currentUser()', desc: 'show user issues' } when 'project' { aliases: ['-p'], type: :string, desc: 'show project issues' } when 'status' { type: :string, default: 'To Do,In Progress', desc: 'status filter' } when 'order' { type: :string, aliases: ['-o'], default: 'updatedDate DESC', desc: 'order issues' } when 'issue_key' { type: :string, aliases: [''], default: '', desc: 'order issues' } end end |