Documentation ¶
Index ¶
- Variables
- func Base() string
- func CurrentVersion(name string) string
- func GetBin(args ...interface{}) string
- func GetShellName() string
- func GetShellPath() string
- func Home() string
- func InstallLanguage(language, version string) string
- func InstallPath() string
- func IsDebug() bool
- func IsInstalled(name, version string) bool
- func Path(args ...interface{}) string
- func Prefix(name string) string
- func Support() string
- func TempDir() (tmp string)
- func WriteVersion(name, version string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultInstall is a default path to the general bin folder DefaultInstall = filepath.Join(Base(), "bin") // ConnectionError is a general connection error text ConnectionError = "Connection cannot be established" )
Functions ¶
func Base ¶
func Base() string
Base provides path where eclectica stores everything filesystem related
func CurrentVersion ¶
CurrentVersion get current version for the specific language
func GetBin ¶
func GetBin(args ...interface{}) string
GetBin returns path to the bin folder of the provided language
func InstallLanguage ¶
InstallLanguage get path to dist folder in install folder
func IsDebug ¶
func IsDebug() bool
IsDebug checks if eclectica in the debug state i.e. will print more info when executing commands
func IsInstalled ¶
IsInstalled checks if this version was already installed
func Path ¶
func Path(args ...interface{}) string
Path gets path of the install folder for the specific version or to the current one
func TempDir ¶
func TempDir() (tmp string)
TempDir gets OS consistent folder path I am crying over here :/
func WriteVersion ¶
WriteVersion writes version to the language install folder path under the name ".eclectica"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.