Documentation
¶
Index ¶
- Variables
- func AppendIfNotContains(path string, lines2Add []string) error
- func ConfigGitIgnore() error
- func ConfigIde() error
- func ConfigPath() error
- func Contains[T string | int | int64 | float64](list []T, item T) bool
- func Delete(version string) error
- func DownloadFile(url string, dest string) error
- 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 GetGlobalVersion() (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, force bool) error
- func IsSymlink(name string) (bool, error)
- func IsVersionInstalled(version string) bool
- func JudgeUseMirror() bool
- func SaveConfig() error
- func SetAlias() error
- func Symlink(src, dst string) error
- func TestFlutter() error
- func TestFvm() error
- func Uncompress(src, dest string) error
- func Unzip(src, dest string) error
- func Use(v string) error
- type ShellType
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 ( ErrVersionNotInstalled = errors.New("Version not installed. Please install it before using.") ErrGlobalNotSet = errors.New("Global version not set. Please set it before using.") )
View Source
var ( Shell ShellType RcPath string ShellName string ErrShellConfigNotFound = errNone ErrUnsupportedShell = errNone )
Functions ¶
func AppendIfNotContains ¶ added in v0.0.8
func ConfigGitIgnore ¶
func ConfigGitIgnore() error
func ConfigPath ¶
func ConfigPath() error
func DownloadFile ¶ added in v0.2.0
func GetFileHash ¶
func GetGlobalVersion ¶ added in v0.3.3
func GetReleaseByVersion ¶
func GetReleases ¶
func GetVersionDir ¶
func IsVersionInstalled ¶
func JudgeUseMirror ¶ added in v0.0.6
func JudgeUseMirror() bool
func SaveConfig ¶
func SaveConfig() error
func TestFlutter ¶ added in v0.1.1
func TestFlutter() error
func Uncompress ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.