cliutil

package
v0.8.19-rc-0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cliutil provides generic CLI utilities such as directory discovery, permission checking, and bootstrap verification.

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 earthbuild files to be owned by the user and their group.

func GetEarthDir added in v0.8.18

func GetEarthDir(installName string) string

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

func GetOrCreateEarthDir added in v0.8.18

func GetOrCreateEarthDir(installName string) (string, error)

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

func GetValidEnvNames

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

GetValidEnvNames returns valid environment variable names for CLI configuration.

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