Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildError ¶
func (*BuildError) Error ¶
func (e *BuildError) Error() string
func (*BuildError) Unwrap ¶
func (e *BuildError) Unwrap() error
type BuildErrors ¶
type BuildErrors struct { sync.RWMutex Errs []*BuildError }
func (*BuildErrors) Append ¶
func (e *BuildErrors) Append(t Tool, err error)
func (*BuildErrors) Empty ¶
func (e *BuildErrors) Empty() bool
func (*BuildErrors) Error ¶
func (e *BuildErrors) Error() string
func (*BuildErrors) Unwrap ¶
func (e *BuildErrors) Unwrap() error
type Config ¶
type Config struct { FS afero.Fs WorkingDir string RootDir string ManifestName string BinDirName string Verbose bool Log *log.Logger }
Config contains configurations to manage development tools.
func (*Config) ManifestPath ¶
func (*Config) RequireManifest ¶
RequireManifest returns an error if the manifest file does not exist.
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
Manifest contains tool list
func NewManifest ¶
NewManifest creates a new Manifest instance.
func (*Manifest) ManagerType ¶
type Repository ¶
type Repository interface { List(ctx context.Context) ([]Tool, error) Add(ctx context.Context, global bool, pkgs ...string) error Build(ctx context.Context, t Tool) (string, error) BuildAll(ctx context.Context) error Run(ctx context.Context, name string, args ...string) error }
Repository is an interface for managing and operating tools
func NewRepository ¶
func NewRepository(executor manager.Executor, manager manager.Interface, managerType manager.Type, cfg *Config) Repository
NewRepository creates a new Repository instance.
Click to show internal directories.
Click to hide internal directories.