Documentation
¶
Index ¶
- func CheckUncommittedChanges() (status string, hasChanges bool, err error)
- func DisplayGitConfirmHeader(title, subtitle, target string)
- func DisplayUncommittedChangesWarning(status string)
- func ExecuteGitCheckout(target string) (string, string, error)
- func ExecuteGitCommand(args ...string) (string, error)
- func ExecuteGitCommit(message string) string
- func FormatGitError(err error, output string) string
- func FormatGitSuccess(action, target string) string
- func RegisterTools(registry *tools.Registry)
- type GitCheckoutTool
- type GitCommitTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUncommittedChanges ¶
CheckUncommittedChanges checks for uncommitted changes status: git status --porcelain output hasChanges: whether there are changes
func DisplayGitConfirmHeader ¶
func DisplayGitConfirmHeader(title, subtitle, target string)
DisplayGitConfirmHeader displays the confirm UI header
func DisplayUncommittedChangesWarning ¶
func DisplayUncommittedChangesWarning(status string)
DisplayUncommittedChangesWarning displays a warning for uncommitted changes
func ExecuteGitCheckout ¶
ExecuteGitCheckout restores a file or checks out a branch
func ExecuteGitCommand ¶
ExecuteGitCommand executes a git command and returns the result
func ExecuteGitCommit ¶
ExecuteGitCommit executes git commit
func FormatGitError ¶
FormatGitError formats a git command error
func FormatGitSuccess ¶
FormatGitSuccess formats a git success message
func RegisterTools ¶
RegisterTools registers git tools with the registry
Types ¶
type GitCheckoutTool ¶
type GitCheckoutTool struct{}
GitCheckoutTool is the tool for git checkout
func (*GitCheckoutTool) Description ¶ added in v0.44.0
func (t *GitCheckoutTool) Description() string
func (*GitCheckoutTool) Parameters ¶ added in v0.44.0
func (t *GitCheckoutTool) Parameters() map[string]interface{}
func (*GitCheckoutTool) Run ¶
func (t *GitCheckoutTool) Run(args map[string]string) (string, *tools.FileChange, error)
Run executes the git checkout tool
type GitCommitTool ¶
type GitCommitTool struct{}
GitCommitTool is the tool for git commit
func (*GitCommitTool) Description ¶ added in v0.44.0
func (t *GitCommitTool) Description() string
func (*GitCommitTool) Parameters ¶ added in v0.44.0
func (t *GitCommitTool) Parameters() map[string]interface{}
func (*GitCommitTool) Run ¶
func (t *GitCommitTool) Run(args map[string]string) (string, *tools.FileChange, error)
Run executes the git commit tool