Class: Commands

Inherits:
Object
  • Object
show all
Defined in:
lib/commands.rb

Class Method Summary collapse

Class Method Details

.config(options = {}) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/commands.rb', line 11

def config(options = {})
  if options[:reset] == false
    Configuration.reset!(options[:config_path])
  else
    Configuration.print
  end
end

.issues(options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/commands.rb', line 19

def issues(options = {})

  validate_flags(options, :keys, :output)
  print_issues("issues", options)
end

.iteration(options = {}) ⇒ Object



25
26
27
28
29
# File 'lib/commands.rb', line 25

def iteration(options = {})
  validate_flags(options, :project, :version, :output)
  
  print_issues("iteration", options)
end