Class: RubyCoded::Tools::GitStatusTool

Inherits:
GitBaseTool show all
Defined in:
lib/ruby_coded/tools/git_status_tool.rb

Overview

Show the current git working tree status.

Constant Summary

Constants inherited from GitBaseTool

RubyCoded::Tools::GitBaseTool::GIT_ENV, RubyCoded::Tools::GitBaseTool::MAX_OUTPUT_CHARS

Constants inherited from BaseTool

BaseTool::CONFIRM_RISK, BaseTool::DANGEROUS_RISK, BaseTool::SAFE_RISK

Instance Method Summary collapse

Methods inherited from GitBaseTool

#ensure_git_repo!, #format_git_result, #git_repo?, #run_git_command, #shell_join, #truncate_output

Methods inherited from BaseTool

#initialize

Constructor Details

This class inherits a constructor from RubyCoded::Tools::BaseTool

Instance Method Details

#executeObject



12
13
14
# File 'lib/ruby_coded/tools/git_status_tool.rb', line 12

def execute
  run_git_command("status", "--short", "--branch")
end