Class: GitAuto::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/git_auto/cli.rb', line 9

def self.exit_on_failure?
  true
end

Instance Method Details

#analyzeObject



75
76
77
# File 'lib/git_auto/cli.rb', line 75

def analyze
  Commands::HistoryAnalysisCommand.new(options).execute
end

#commitObject



60
61
62
# File 'lib/git_auto/cli.rb', line 60

def commit
  Commands::CommitMessageCommand.new(options).execute
end

#config(*args) ⇒ Object



44
45
46
# File 'lib/git_auto/cli.rb', line 44

def config(*args)
  Commands::ConfigCommand.new.execute(args)
end

#setupObject



30
31
32
# File 'lib/git_auto/cli.rb', line 30

def setup
  Commands::SetupCommand.new.execute
end

#versionObject



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

def version
  puts "git_auto version #{GitAuto::VERSION}"
end