Class: Committer::Commands::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/committer/commands/help.rb

Class Method Summary collapse

Class Method Details

.execute(_args) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/committer/commands/help.rb', line 6

def self.execute(_args)
  puts 'Committer - AI-powered git commit message generator'
  puts
  puts 'Commands:'
  puts '  committer setup          - Create the config file template at ~/.committer/config.yml'
  puts '  committer                - Generate commit message for staged changes'
  puts '  committer output-message - Generate commit message without creating a commit'
  puts '  committer setup-git-hook - Install the prepare-commit-msg git hook'
  puts
  exit 0
end