rusti

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	File file.File
	Dir  file.Folder
	Env  Env
}

func New

func New() (binary Binary, err error)

func (*Binary) CleanUp

func (b *Binary) CleanUp() error

func (*Binary) Download

func (b *Binary) Download(target string) error

func (*Binary) Find

func (b *Binary) Find(paths ...string) (file.File, error)

func (Binary) Latest

func (b Binary) Latest() (string, error)

func (Binary) MatchTarget

func (b Binary) MatchTarget(version string) (string, error)

type Env

type Env map[string]string

func (*Env) Append

func (e *Env) Append(env Env)

func (*Env) Default

func (e *Env) Default(dir string)

func (Env) ToSlice

func (e Env) ToSlice() []string

type Installer

type Installer struct {
	Binary Binary
}

func (*Installer) Install

func (i *Installer) Install(path string) (output string, err error)

Jump to

Keyboard shortcuts

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