Class: Gitgrass::CLI

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

Instance Method Summary collapse

Instance Method Details

#show(user) ⇒ Object



7
8
9
10
11
12
# File 'lib/gitgrass/cli.rb', line 7

def show(user)
    git_scrap = GitScrap.new(user)
    git_scrap.year = options["year"].to_i if options["year"]
    git_scrap.make_grass_table()
    git_scrap.tile_table.each { |t| puts t.join }
end