Class: Changelog::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/changelog/cli.rb

Instance Method Summary collapse

Instance Method Details

#add(title = '') ⇒ Object



37
38
39
# File 'lib/changelog/cli.rb', line 37

def add(title = '')
  Changelog::Add.new.go(title, options.symbolize_keys)
end


62
63
64
# File 'lib/changelog/cli.rb', line 62

def print
  Changelog::Print.new.go
end

#setupObject



16
17
18
# File 'lib/changelog/cli.rb', line 16

def setup
  Changelog::Setup.new.go
end

#show(version) ⇒ Object



57
58
59
# File 'lib/changelog/cli.rb', line 57

def show(version)
  Changelog::Show.new.go(version)
end

#tag(version) ⇒ Object



47
48
49
# File 'lib/changelog/cli.rb', line 47

def tag(version)
  Changelog::Tag.new.go(version, options.symbolize_keys)
end

#untag(version) ⇒ Object



52
53
54
# File 'lib/changelog/cli.rb', line 52

def untag(version)
  Changelog::Untag.new.go(version)
end

#versionObject



11
12
13
# File 'lib/changelog/cli.rb', line 11

def version
  say Changelog::VERSION
end