runtimego

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func New

func New(baseDir string) *Runtime

func (*Runtime) GetLatest

func (r *Runtime) GetLatest(ctx context.Context, module string) (string, bool, error)

func (*Runtime) GetModule

func (r *Runtime) GetModule(ctx context.Context, module string) (*structs.ModuleInfo, error)

func (*Runtime) Install

func (r *Runtime) Install(ctx context.Context, program string) error

func (*Runtime) Parse

func (r *Runtime) Parse(ctx context.Context, str string) (string, error)

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

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context, program string, args ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL