{"modulePath":"github.com/windsorcli/cli","version":"v0.7.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tools\n\n## Functions\n\n```go\nfunc CheckExistingToolsManager(projectRoot string) (string, error)\n```\nCheckExistingToolsManager identifies the active tools manager, prioritizing aqua.\n\n## Types\n\n```go\ntype BaseToolsManager struct {\n\t// contains filtered or unexported fields\n}\n```\nBaseToolsManager is the base implementation of the ToolsManager interface.\n\n```go\nfunc NewToolsManager(injector di.Injector) *BaseToolsManager\n```\nCreates a new ToolsManager instance with the given injector.\n\n```go\nfunc (t *BaseToolsManager) Check() error\n```\nCheck checks that appropriate tools are installed and configured.\n\n```go\nfunc (t *BaseToolsManager) Initialize() error\n```\nInitialize the tools manager by resolving the config handler and shell.\n\n```go\nfunc (t *BaseToolsManager) Install() error\n```\nInstall installs the tools required by the project.\n\n```go\nfunc (t *BaseToolsManager) WriteManifest() error\n```\nWriteManifest writes the tools manifest to the project root. It should not overwrite existing manifest files, but update them appropriately.\n\n```go\ntype MockToolsManager struct {\n\tInitializeFunc    func() error\n\tWriteManifestFunc func() error\n\tInstallFunc       func() error\n\tCheckFunc         func() error\n}\n```\nMockToolsManager is a mock implementation of the ToolsManager interface for testing purposes.\n\n```go\nfunc NewMockToolsManager() *MockToolsManager\n```\nNewMockToolsManager creates a new instance of MockToolsManager.\n\n```go\nfunc (m *MockToolsManager) Check() error\n```\nCheck calls the mock CheckFunc if set, otherwise returns nil.\n\n```go\nfunc (m *MockToolsManager) Initialize() error\n```\nInitialize calls the mock InitializeFunc if set, otherwise returns nil.\n\n```go\nfunc (m *MockToolsManager) Install() error\n```\nInstallTools calls the mock InstallToolsFunc if set, otherwise returns nil.\n\n```go\nfunc (m *MockToolsManager) WriteManifest() error\n```\nWriteManifest calls the mock WriteManifestFunc if set, otherwise returns nil.\n\n```go\ntype ToolsManager interface {\n\tInitialize() error\n\tWriteManifest() error\n\tInstall() error\n\tCheck() error\n}\n```\n\n","path":"github.com/windsorcli/cli/pkg/tools","name":"tools","synopsis":"","isRedistributable":true}
