installer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHandler

type GitHandler struct{}

GitHandler handles generic git repositories

func (*GitHandler) CheckUpdate

func (g *GitHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)

CheckUpdate checks if updates are available

func (*GitHandler) Fetch

func (g *GitHandler) Fetch(source config.Source, destDir string) (string, string, error)

Fetch clones a git repository

type GitHubHandler

type GitHubHandler struct{}

GitHubHandler handles GitHub repositories

func (*GitHubHandler) CheckUpdate

func (g *GitHubHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)

CheckUpdate checks if updates are available

func (*GitHubHandler) Fetch

func (g *GitHubHandler) Fetch(source config.Source, destDir string) (string, string, error)

Fetch clones a GitHub repository

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer manages agent installation

func New

func New(cfg *config.Config, track *tracker.Tracker, resolver *conflict.Resolver, opts Options) *Installer

New creates a new installer instance

func (*Installer) InstallSource

func (i *Installer) InstallSource(source config.Source) error

InstallSource installs agents from a specific source

func (*Installer) UninstallAll

func (i *Installer) UninstallAll() error

UninstallAll removes all installed agents

func (*Installer) UninstallSource

func (i *Installer) UninstallSource(sourceName string) error

UninstallSource removes agents from a specific source

func (*Installer) UpdateSource

func (i *Installer) UpdateSource(sourceName string) error

UpdateSource updates agents from a specific source

type LocalHandler

type LocalHandler struct{}

LocalHandler handles local file system sources

func (*LocalHandler) CheckUpdate

func (l *LocalHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)

CheckUpdate checks if local source has been modified

func (*LocalHandler) Fetch

func (l *LocalHandler) Fetch(source config.Source, destDir string) (string, string, error)

Fetch copies from local file system

type Options

type Options struct {
	Verbose     bool
	DryRun      bool
	KeepBackups bool
}

Options contains installer options

type SourceHandler

type SourceHandler interface {
	Fetch(source config.Source, destDir string) (string, string, error)
	CheckUpdate(source config.Source, currentCommit string) (bool, string, error)
}

SourceHandler interface for different source types

type SubagentsHandler

type SubagentsHandler struct {
	// contains filtered or unexported fields
}

SubagentsHandler handles subagents.sh marketplace

func NewSubagentsHandler

func NewSubagentsHandler(cfg *config.Config) (*SubagentsHandler, error)

func (*SubagentsHandler) CheckUpdate

func (s *SubagentsHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)

CheckUpdate implements SourceHandler interface

func (*SubagentsHandler) Fetch

func (s *SubagentsHandler) Fetch(source config.Source, destDir string) (string, string, error)

Fetch implements SourceHandler interface

Jump to

Keyboard shortcuts

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