cliutil

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsurePermissions

func EnsurePermissions(installName string) error

EnsurePermissions changes the permissions of all earthly files to be owned by the user and their group.

func GetEarthlyDir

func GetEarthlyDir(installName string) string

GetEarthlyDir returns the .earthly dir. (Usually ~/.earthly). This function will not attempt to create the directory if missing, for that functionality use to the GetOrCreateEarthlyDir function.

func GetOrCreateEarthlyDir

func GetOrCreateEarthlyDir(installName string) (string, error)

GetOrCreateEarthlyDir returns the .earthly dir. (Usually ~/.earthly). if the directory does not exist, it will attempt to create it.

func GetValidEnvNames added in v0.7.0

func GetValidEnvNames(app *cli.App) map[string]struct{}

func IsBootstrapped

func IsBootstrapped(installName string) bool

IsBootstrapped provides a tentatively correct guess about the state of our bootstrapping.

Types

This section is empty.

Jump to

Keyboard shortcuts

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