Documentation
¶
Overview ¶
Package integrations provides commands for managing various integrations
Package integrations provides commands for managing various integrations
Index ¶
- Variables
- func InstallAgents(runner git.Runner, force bool, version string, out io.Writer) error
- func InstallGitHub(runner git.Runner, force bool, out io.Writer) error
- func InstallPrecommit(runner git.Runner, out io.Writer) error
- func InstallPrepush(runner git.Runner, out io.Writer) error
- func IsAgentsInstalled(runner git.Runner) bool
- func IsGitHubInstalled(runner git.Runner) bool
- func IsPrecommitInstalled(runner git.Runner) bool
- func IsPrepushInstalled(runner git.Runner) bool
- func NewAgentsCmd(version string) *cobra.Command
- func NewGithubCmd() *cobra.Command
- func NewPrecommitCmd() *cobra.Command
- func NewPrepushCmd() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
var TemplateVersion = "dev"
TemplateVersion is deprecated and no longer used. Version is now passed as a parameter to avoid data races in concurrent test execution. Kept for backward compatibility but should not be referenced.
Functions ¶
func InstallAgents ¶
InstallAgents installs AI agent integration files. This is a convenience wrapper for use during init. It auto-detects formats from existing directories to avoid a nested prompt.
func InstallGitHub ¶
InstallGitHub installs GitHub Actions workflow for stackit CI checks. This is a convenience wrapper for use during init. When called from init, skipIfExists is true to avoid errors if workflows already exist.
func InstallPrecommit ¶
InstallPrecommit installs the pre-commit hook. This is a convenience wrapper for use during init.
func InstallPrepush ¶
InstallPrepush installs the pre-push hook. This is a convenience wrapper for use during init.
func IsAgentsInstalled ¶
IsAgentsInstalled checks if agent integration files are already installed. Checks both global (~/.claude/, ~/.codex/) and local (.claude/, .codex/) installations.
func IsGitHubInstalled ¶
IsGitHubInstalled checks if GitHub Actions workflow is already installed. Returns true only if the workflow exists AND contains stackit-specific content, to distinguish from manually created workflows with the same name.
func IsPrecommitInstalled ¶
IsPrecommitInstalled checks if the pre-commit hook is already installed.
func IsPrepushInstalled ¶
IsPrepushInstalled checks if the pre-push hook is already installed.
func NewAgentsCmd ¶
NewAgentsCmd creates the agent command
func NewPrecommitCmd ¶
NewPrecommitCmd creates the precommit command
Types ¶
This section is empty.