Module: GitAuto

Defined in:
lib/git_auto.rb,
lib/git_auto/cli.rb,
lib/git_auto/errors.rb,
lib/git_auto/version.rb,
lib/git_auto/config/settings.rb,
lib/git_auto/services/ai_service.rb,
lib/git_auto/services/git_service.rb,
lib/git_auto/commands/setup_command.rb,
lib/git_auto/commands/config_command.rb,
lib/git_auto/config/credential_store.rb,
lib/git_auto/services/history_service.rb,
lib/git_auto/formatters/diff_formatter.rb,
lib/git_auto/formatters/diff_summarizer.rb,
lib/git_auto/formatters/message_formatter.rb,
lib/git_auto/commands/commit_message_command.rb,
lib/git_auto/commands/history_analysis_command.rb,
lib/git_auto/validators/commit_message_validator.rb

Defined Under Namespace

Modules: Commands, Config, Errors, Formatters, Services, Validators Classes: CLI, Error

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.installObject



33
34
35
36
# File 'lib/git_auto.rb', line 33

def install
  # Create config directory if it doesn't exist
  FileUtils.mkdir_p(Config::Settings::CONFIG_DIR)
end

.rootObject



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

def root
  File.expand_path("..", __dir__)
end

.uninstallObject



38
39
40
41
# File 'lib/git_auto.rb', line 38

def uninstall
  # Remove config directory and all its contents if it exists
  FileUtils.rm_rf(Config::Settings::CONFIG_DIR)
end