Documentation
¶
Overview ¶
Package installer provides installation and management for git-courer.
Package installer provides installation and management for git-courer.
Package installer provides installation and management for git-courer.
Package installer provides installation and management for git-courer.
Package installer provides installation and management for git-courer.
Package installer provides installation and management for git-courer.
Index ¶
- Constants
- func CheckForUpdates() (bool, string, error)
- func ConfigureAllMCP(binPath string) (int, error)
- func ConfigureMCP(client *MCPClient, binPath string) error
- func DownloadUpdate() error
- func FetchVersion() (string, error)
- func FindBinaryPath() (string, error)
- func GetInstallPath() string
- func RemoveHooks(projectDir string) error
- func RemoveProject(projectDir string) error
- func RunInstall() error
- func RunRemove(projectDir string) error
- func RunSetup(projectDir string) error
- func RunUninstall() error
- func RunUpdate(force bool) error
- func SetupClient(clientName, binPath string) error
- func SetupHooks(projectDir string) error
- func SetupProject(projectDir string) error
- type Asset
- type MCPClient
- type MCPServerConfig
- type OS
- type Platform
- type Release
- type RuleFile
Constants ¶
const ( // BinaryName is the name of the binary. BinaryName = "git-courer" // Owner is the GitHub owner. Owner = "Alejandro-M-P" // Repo is the GitHub repository. Repo = "git-courer" )
Variables ¶
This section is empty.
Functions ¶
func CheckForUpdates ¶
CheckForUpdates checks if a new version is available.
func ConfigureAllMCP ¶
ConfigureAllMCP configures git-courer for all detected MCP clients.
func ConfigureMCP ¶
ConfigureMCP configures git-courer for the given MCP client.
func DownloadUpdate ¶
func DownloadUpdate() error
DownloadUpdate downloads and installs the latest version.
func FetchVersion ¶
FetchVersion fetches the current version from the binary.
func FindBinaryPath ¶
FindBinaryPath tries to find the git-courer binary path.
func GetInstallPath ¶
func GetInstallPath() string
GetInstallPath returns the default install path for the platform.
func RemoveHooks ¶
RemoveHooks removes git hooks created by git-courer.
func RemoveProject ¶
RemoveProject removes git-courer from a project directory.
func SetupClient ¶
SetupClient sets up git-courer for a specific client.
func SetupHooks ¶
SetupHooks creates git hooks for the project.
func SetupProject ¶
SetupProject sets up git-courer in a project directory.
Types ¶
type Asset ¶
Asset represents a release asset.
func (*Asset) DownloadAsset ¶
DownloadAsset downloads the asset to the given path.
type MCPClient ¶
type MCPClient struct {
Name string
Filename string // config filename
RootKey string // mcpServers, mcp, servers, context_servers
IsArray bool // continue uses array format
ConfigFn func(binPath string) map[string]interface{}
Paths []string // possible config file paths for this platform
Detect func() bool
}
MCPClient represents an MCP client configuration.
func DetectClients ¶
func DetectClients() []*MCPClient
DetectClients returns a list of detected MCP clients on the system.
type MCPServerConfig ¶
type MCPServerConfig struct {
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
Type string `json:"type,omitempty"`
}
MCPServerConfig represents an MCP server entry.
type Platform ¶
Platform represents the current platform.
func (*Platform) BinaryName ¶
BinaryName returns the binary name for this platform.
func (*Platform) GitHubAsset ¶
GitHubAsset returns the partial GitHub asset name (without version). Assets are named like: git-courer_1.0.1_darwin_amd64.tar.gz
type Release ¶
Release represents a GitHub release.
func FetchLatestRelease ¶
FetchLatestRelease fetches the latest release from GitHub.