integrations

package
v0.17.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package integrations provides commands for managing various integrations

Package integrations provides commands for managing various integrations

Index

Constants

This section is empty.

Variables

View Source
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

func InstallAgents(runner git.Runner, force bool, version string, out io.Writer) error

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

func InstallGitHub(runner git.Runner, force bool, out io.Writer) error

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

func InstallPrecommit(runner git.Runner, out io.Writer) error

InstallPrecommit installs the pre-commit hook. This is a convenience wrapper for use during init.

func InstallPrepush

func InstallPrepush(runner git.Runner, out io.Writer) error

InstallPrepush installs the pre-push hook. This is a convenience wrapper for use during init.

func IsAgentsInstalled

func IsAgentsInstalled(runner git.Runner) bool

IsAgentsInstalled checks if agent integration files are already installed. Checks both global (~/.claude/, ~/.codex/) and local (.claude/, .codex/) installations.

func IsGitHubInstalled

func IsGitHubInstalled(runner git.Runner) bool

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

func IsPrecommitInstalled(runner git.Runner) bool

IsPrecommitInstalled checks if the pre-commit hook is already installed.

func IsPrepushInstalled

func IsPrepushInstalled(runner git.Runner) bool

IsPrepushInstalled checks if the pre-push hook is already installed.

func NewAgentsCmd

func NewAgentsCmd(version string) *cobra.Command

NewAgentsCmd creates the agent command

func NewGithubCmd

func NewGithubCmd() *cobra.Command

NewGithubCmd creates the github command

func NewPrecommitCmd

func NewPrecommitCmd() *cobra.Command

NewPrecommitCmd creates the precommit command

func NewPrepushCmd

func NewPrepushCmd() *cobra.Command

NewPrepushCmd creates the prepush command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL