Class: Codelog::CLI

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

Instance Method Summary collapse

Instance Method Details

#newObject



15
16
17
# File 'lib/codelog/cli.rb', line 15

def new
  Codelog::Command::New.run options
end

#release(version_number, release_date = Date.today.strftime(Codelog::Config.date_input_format)) ⇒ Object



20
21
22
23
# File 'lib/codelog/cli.rb', line 20

def release(version_number, release_date =
            Date.today.strftime(Codelog::Config.date_input_format))
  Codelog::Command::Release.run version_number, release_date
end

#setupObject



8
9
10
# File 'lib/codelog/cli.rb', line 8

def setup
  Codelog::Command::Setup.run
end