Documentation ¶
Index ¶
- Constants
- type CommandExecutorFace
- type Github
- func (gh *Github) AddDependencies(ctx context.Context, depsToAdd []string) (depsUpdated []string, userWarnings []string, err error)
- func (gh *Github) AddPackages(ctx context.Context, pkgsToAdd []string) (packagesUpdated []string, userWarnings []string, err error)
- func (gh *Github) GetDependencyNames(ctx context.Context, deps []string) []string
- func (gh *Github) GetPackageNames(ctx context.Context, packages []string) []string
- func (gh *Github) Icon() string
- func (gh *Github) InitCheckCmd() error
- func (gh *Github) InitCheckConfig() error
- func (gh *Github) InitConfig()
- func (gh *Github) InstallValidArgs(ctx context.Context, toComplete string, dependencies bool) ([]string, error)
- func (gh *Github) ListDependencies(ctx context.Context, deps []string, stateDeps []string) (depStatus status.DependenciesStatus, err error)
- func (gh *Github) ListPackages(ctx context.Context, packages []string, statePkgs []string) (packageStatus status.PackageStatus, err error)
- func (gh *Github) LongDesc() string
- func (gh *Github) Name() shared.ManagerName
- func (gh *Github) NeedsSudo() []shared.CommandName
- func (gh *Github) RemoveDependencies(ctx context.Context, allDeps []string, depsToRemove []string) (depsUpdated []string, userWarnings []string, err error)
- func (gh *Github) RemovePackages(ctx context.Context, allPkgs []string, pkgsToRemove []string) (packagesToRemove []string, userWarnings []string, err error)
- func (gh *Github) ShortDesc() string
- func (gh *Github) SyncDependencies(ctx context.Context, depStatus status.DependenciesStatus) (userWarnings []string, err error)
- func (gh *Github) SyncPackages(ctx context.Context, packageStatus status.PackageStatus) (userWarnings []string, err error)
- type GithubHttp
- type GithubHttpFace
Constants ¶
View Source
const Name shared.ManagerName = "github"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutorFace ¶
type CommandExecutorFace interface { ListInstalledPkgs(ctx context.Context, folderPath string) ([]shared.Package, error) GetManifestPackages(ctx context.Context, packages []string) ([]shared.Package, error) InstallPkg(ctx context.Context, pkg shared.Package, folderPath, binPath string) error RemovePkg(ctx context.Context, pkg shared.Package, folderPath, binPath string) error }
type Github ¶
type Github struct { CommandExecutorFace // contains filtered or unexported fields }
func (*Github) AddDependencies ¶
func (*Github) AddPackages ¶
func (*Github) GetDependencyNames ¶
func (*Github) GetPackageNames ¶
func (*Github) InitCheckCmd ¶
func (*Github) InitCheckConfig ¶
func (*Github) InitConfig ¶
func (gh *Github) InitConfig()
func (*Github) InstallValidArgs ¶
func (*Github) ListDependencies ¶
func (*Github) ListPackages ¶
func (*Github) Name ¶
func (gh *Github) Name() shared.ManagerName
func (*Github) NeedsSudo ¶
func (gh *Github) NeedsSudo() []shared.CommandName
func (*Github) RemoveDependencies ¶
func (*Github) RemovePackages ¶
func (*Github) SyncDependencies ¶
func (*Github) SyncPackages ¶
type GithubHttp ¶
type GithubHttp struct { }
func (GithubHttp) DownloadLatestRelease ¶
func (GithubHttp) GetLatestRelease ¶
Click to show internal directories.
Click to hide internal directories.