Documentation ¶
Index ¶
- Variables
- func ConfigGitIgnore() error
- func ConfigIde() error
- func ConfigPath() error
- func Contains[T string | int | int64 | float64](list []T, item T) bool
- func Execute(bin string, args ...string) error
- func Exists(path string) bool
- func GetArch() string
- func GetConfig() error
- func GetFileHash(path string) (string, error)
- func GetOS() string
- func GetReleaseByVersion(releases []model.Release, version string) (r model.Release, err error)
- func GetReleases() (releases []model.Release, err error)
- func GetVersionDir(v string) string
- func Global(version string) error
- func Install(r model.Release) error
- func IsSymlink(name string) (bool, error)
- func IsVersionInstalled(version string) bool
- func JudgeUseMirror(notify bool) bool
- func SaveConfig() error
- func SetAlias() error
- func Symlink(src, dst string) error
- func Test() error
- func Uncompress(src, dest string) error
- func Unzip(src, dest string) error
- func Use(v string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsuppotedCompressFormat = fmt.Errorf("unsupported compress format") FvmHome = os.Getenv(consts.FVM_HOME) )
View Source
var ( Config model.Config ErrNoConfig = errors.New("No config file") )
View Source
var (
ErrShellConfigFileNotFound = fmt.Errorf("shell config file not found")
)
View Source
var (
ErrUnsupportedShellPrefix = "Unsupported shell: "
)
View Source
var (
ErrVersionNotInstalled = errors.New("Version not installed. \nPlease install it before using.")
)
Functions ¶
func ConfigGitIgnore ¶
func ConfigGitIgnore() error
func ConfigPath ¶
func ConfigPath() error
func GetFileHash ¶
func GetReleaseByVersion ¶
func GetReleases ¶
func GetVersionDir ¶
func IsVersionInstalled ¶
func JudgeUseMirror ¶ added in v0.0.6
func SaveConfig ¶
func SaveConfig() error
func Uncompress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.