Class: AiGitCommit::CLI
- Inherits:
-
Thor
- Object
- Thor
- AiGitCommit::CLI
- Defined in:
- lib/ai_git_commit/cli.rb
Overview
CLI class provides command-line interface for AI Git Commit tool. It uses Thor for command parsing and execution.
Constant Summary collapse
- HOOK_PATH =
".git/hooks/prepare-commit-msg"
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
16 17 18 19 20 |
# File 'lib/ai_git_commit/cli.rb', line 16 def install create_hook copy_initializer puts "AI Git Commit prepare-commit-msg hook set up." end |