Documentation
¶
Index ¶
- func Install(ctx context.Context, fSys fsh.FS, binToolDir, ver string) error
- type Runtime
- func (r *Runtime) GetLatest(ctx context.Context, moduleReq string) (string, bool, error)
- func (r *Runtime) GetModule(ctx context.Context, module string) (*structs.ModuleInfo, error)
- func (r *Runtime) Install(ctx context.Context, program string) error
- func (r *Runtime) Parse(ctx context.Context, str string) (string, error)
- func (r *Runtime) Remove(ctx context.Context, tool structs.Tool) error
- func (r *Runtime) Run(ctx context.Context, program string, args ...string) error
- func (r *Runtime) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func Discover ¶
Discover will find all supported golang runtimes. It can be: - global installation - local ./bin/tools installation
func (*Runtime) Parse ¶
Parse will parse string to normal version. github.com/kazhuravlev/toolset/cmd/toolset@latest github.com/kazhuravlev/toolset/cmd/toolset github.com/kazhuravlev/toolset/cmd/toolset@v4.2
Click to show internal directories.
Click to hide internal directories.