module Molflow::CommandOptions

Public Instance Methods

install_options(key) click to toggle source

molflow install

# File lib/molflow/command_options.rb, line 5
def install_options(key)
  case key
  when 'path'
    {
      aliases: ['-p'],
      type: :string,
      default: "#{ENV['HOME']}/.molflow",
      desc: 'Specify a configuration file path.'
    }
  end
end
jira_options(key) click to toggle source
# File lib/molflow/command_options.rb, line 17
def jira_options(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) click to toggle source
# File lib/molflow/command_options.rb, line 55
def open_options(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