Documentation ¶
Index ¶
- Variables
- func Clean(verbose bool) error
- func NewDefaultAssetOperator(stdin io.Reader, stdout io.Writer, stderr io.Writer) model.AssetOperator
- func NewDefaultManifester() model.Manifester
- type Manager
- func (m *Manager) Activate(commandName, tagName string) error
- func (m *Manager) Install(ctx context.Context, remotePath, commandName string) error
- func (m *Manager) Rename(sourceCommandName, targetCommandName string) error
- func (m *Manager) Run(commandName string, args ...string) error
- func (m *Manager) Uninstall(commandName, tagName string) error
- func (m *Manager) Upgrade(ctx context.Context, commandName string) error
Constants ¶
This section is empty.
Variables ¶
var AssetOperatorFS = afero.NewOsFs()
AssetOperatorFS is file system that will be used by operator. It can be changed before calling any operation. But, make sure to change it back after the operation is done to its default value to avoid unexpected behaviour.
var CleanExtensionFS = afero.NewOsFs()
CleanExtensionFS is file system that will be used when cleaning extension. It can be changed before calling the clean operation. But, make sure to change it back after the operation is done to its default value to avoid unexpected behaviour.
var ManifesterFS = afero.NewOsFs()
ManifesterFS is file system that will be used for manifester operations. It can be changed before calling any manifester operation. But, make sure to change it back after the operation is done to its default value to avoid unexpected behaviour.
Functions ¶
func NewDefaultAssetOperator ¶
func NewDefaultAssetOperator(stdin io.Reader, stdout io.Writer, stderr io.Writer) model.AssetOperator
NewDefaultAssetOperator initializes default asset operator
func NewDefaultManifester ¶
func NewDefaultManifester() model.Manifester
NewDefaultManifester initializes default manifester
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager defines the extension management
func NewManager ¶
func NewManager( manifester model.Manifester, assetOperator model.AssetOperator, verbose bool, reservedCommandNames ...string, ) (*Manager, error)
NewManager initializes new manager