{"modulePath":"github.com/DomBlack/git-stack","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package install\n\nPackage install sets up git aliases, shell completion (with git integration), agent MCP registration and the optional Claude Code skill, and removes exactly what it installed.\n\n## Functions\n\n```go\nfunc SkillContent() string\n```\nSkillContent exposes the embedded skill (docs/tests).\n\n## Types\n\n```go\ntype Installer struct {\n\tGit    *git.Client\n\tRunner exec.Runner\n\t// Exe is the absolute path of the git-stack binary for agent registration.\n\tExe string\n\tEnv shell.Env\n\t// CodexHome is Codex's config directory ($CODEX_HOME); empty means\n\t// ~/.codex.\n\tCodexHome string\n\t// CobraScript generates cobra's completion script for a shell.\n\tCobraScript func(sh shell.Shell) (string, error)\n\t// Prompter is nil when non-interactive.\n\tPrompter app.Prompter\n\t// Report receives the human readable report (the CLI passes ui.Reporter).\n\tReport Report\n\t// Agents overrides the agent list (tests).\n\tAgents []agents.Agent\n}\n```\nInstaller performs the work.\n\n```go\nfunc (i *Installer) CodexSkillPath() string\n```\nCodexSkillPath is where the Codex user skill is written.\n\n```go\nfunc (i *Installer) Refresh(ctx context.Context) error\n```\nRefresh brings what an earlier install set up in line with this binary, without prompting: \\`git stack update\\` runs it with the new binary once the swap is done. It only touches what is already there (aliases and files recorded as managed, agent registrations that exist) and only reports what it changed; when nothing changed it prints nothing.\n\nAliases this version adds are installed when the aliases were; an alias you have set to something else is left alone. A completion file or skill is only rewritten while it is still ours.\n\n```go\nfunc (i *Installer) Run(ctx context.Context, o Options) error\n```\nRun installs the selected components.\n\n```go\nfunc (i *Installer) SkillPath() string\n```\nSkillPath is where the Claude Code personal skill is written.\n\n```go\nfunc (i *Installer) Uninstall(ctx context.Context, o Options) error\n```\nUninstall reverses everything recorded as managed.\n\n```go\ntype Options struct {\n\tAliases    bool\n\tCompletion bool\n\tAgents     bool\n\t// Skill is nil to ask (or skip when non-interactive), otherwise explicit.\n\tSkill  *bool\n\tShells []shell.Shell\n\tDryRun bool\n\tForce  bool\n}\n```\nOptions selects what to install.\n\n```go\ntype Report interface {\n\tSuccess(format string, args ...any)\n\tInfo(format string, args ...any)\n\tWarn(format string, args ...any)\n}\n```\nReport is where the installer's lines go; see docs/style.md. Info lines are the table of what was (or would be) done, Warn is for dry runs and things that were skipped or kept, Success closes a run.\n\n","path":"github.com/DomBlack/git-stack/pkg/install","name":"install","synopsis":"Package install sets up git aliases, shell completion (with git integration), agent MCP registration and the optional Claude Code skill, and removes exactly what it installed.","isRedistributable":true}
