mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-02 05:08:42 -07:00
Merge remote-tracking branch 'origin/copilot/add-install-remove-changes-reporting' into cd/integration-copilot-prs
This commit is contained in:
8
snack.go
8
snack.go
@@ -58,11 +58,11 @@ func Targets(names ...string) []Target {
|
||||
// log.Warn("hold not supported by", mgr.Name())
|
||||
// }
|
||||
type Manager interface {
|
||||
// Install one or more packages.
|
||||
Install(ctx context.Context, pkgs []Target, opts ...Option) error
|
||||
// Install one or more packages. Returns a result describing what changed.
|
||||
Install(ctx context.Context, pkgs []Target, opts ...Option) (InstallResult, error)
|
||||
|
||||
// Remove one or more packages.
|
||||
Remove(ctx context.Context, pkgs []Target, opts ...Option) error
|
||||
// Remove one or more packages. Returns a result describing what changed.
|
||||
Remove(ctx context.Context, pkgs []Target, opts ...Option) (RemoveResult, error)
|
||||
|
||||
// Purge one or more packages (remove including config files).
|
||||
Purge(ctx context.Context, pkgs []Target, opts ...Option) error
|
||||
|
||||
Reference in New Issue
Block a user