variables

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func CurrentVersion(name string) string

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 GetShellName

func GetShellName() string

GetShellName gets name of the used shell

func GetShellPath

func GetShellPath() string

GetShellPath gets path to current shell binary

func Home

func Home() string

Home gets path to the place where eclectica installs their languages

func InstallLanguage

func InstallLanguage(language, version string) string

InstallLanguage get path to dist folder in install folder

func InstallPath

func InstallPath() string

InstallPath get path to 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

func IsInstalled(name, version string) bool

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 Prefix

func Prefix(name string) string

Prefix gets path to the language install folder

func Support

func Support() string

Support get path to support folder

func TempDir

func TempDir() (tmp string)

TempDir gets OS consistent folder path I am crying over here :/

func WriteVersion

func WriteVersion(name, version string) error

WriteVersion writes version to the language install folder path under the name ".eclectica"

Types

This section is empty.

Jump to

Keyboard shortcuts

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