Class: Codelog::CLI

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

Instance Method Summary collapse

Instance Method Details

#newObject



13
14
15
# File 'lib/codelog/cli.rb', line 13

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

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



18
19
20
21
# File 'lib/codelog/cli.rb', line 18

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