Class: Gissuel::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/gissuel/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



4
5
6
# File 'lib/gissuel/cli.rb', line 4

def index
  @index
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/gissuel/cli.rb', line 4

def label
  @label
end

#repoObject (readonly)

Returns the value of attribute repo.



4
5
6
# File 'lib/gissuel/cli.rb', line 4

def repo
  @repo
end

#verboseObject (readonly)

Returns the value of attribute verbose.



4
5
6
# File 'lib/gissuel/cli.rb', line 4

def verbose
  @verbose
end

Instance Method Details

#getObject



26
27
28
29
30
31
32
33
# File 'lib/gissuel/cli.rb', line 26

def get
  @label = options[:label]
  @repo  = options[:repo]
  @verbose  = options[:verbose]
  @index = options[:index]

  Gissuel::Issues.new(label, repo, verbose, index).publish
end

#versionObject



36
37
38
# File 'lib/gissuel/cli.rb', line 36

def version
  puts "Gissuel version #{Gissuel::VERSION}"
end