config

package
v0.0.0-...-85991d7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ToitPackageCachePathsEnv contains the paths where the compiler is looking for cached packages.
	// This constant must be kept in sync with the one in the compiler.
	ToitPackageCachePathsEnv = "TOIT_PACKAGE_CACHE_PATHS"
	// ToitRegistryCachePathsEnv contains the paths where the compiler is looking for cached registries.
	ToitRegistryCachePathsEnv = "TOIT_REGISTRY_CACHE_PATHS"
	// ToitRegistryInstallPathEnv contains the paths where tpkg will install packages for the project.
	ToitRegistryInstallPathEnv = "TOIT_PACKAGE_INSTALL_PATH"
	// UserConfigDirEnv if set, will be the directory the user config will be loaded from.
	UserConfigDirEnv = "TOIT_USER_CONFIG_DIR"
)

Variables

This section is empty.

Functions

func CachePath

func CachePath() (string, error)

func EnsureDirectory

func EnsureDirectory(dir string, err error) (string, error)

func PackageCachePaths

func PackageCachePaths() ([]string, error)

PackageCachePaths returns the paths where the compiler is looking for cached packages.

func PackageInstallPath

func PackageInstallPath() (string, bool)

func RegistryCachePaths

func RegistryCachePaths() ([]string, error)

RegistryCachePaths returns the paths where the compiler is looking for cached registries.

func UserConfigFile

func UserConfigFile() (string, bool)

UserConfigFile returns the config file in the user directory.

func UserConfigPath

func UserConfigPath() (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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