Module: Molflow::CommandOptions
- Included in:
- CLI, Molflow::Commands::Install, Molflow::Commands::Jira, Molflow::Commands::Open
- Defined in:
- lib/molflow/command_options.rb
Instance Method Summary collapse
-
#install_options(key) ⇒ Object
molflow install.
- #jira_options(key) ⇒ Object
- #open_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 |
#open_options(key) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/molflow/command_options.rb', line 55 def (key) case key when 'issue_key' { type: :string, aliases: [''], default: '', desc: 'order issues' } when 'project_key' { type: :string, aliases: [''], default: '', desc: 'order issues' } when 'jira_key' { type: :string, aliases: [''], default: '', desc: 'order issues' } end end |