Documentation ¶
Index ¶
Constants ¶
const HomeEnv = "HOME"
HomeEnv defines the name of the environment variable that can overwrite the default home directory.
const StepPathEnv = "STEPPATH"
StepPathEnv defines the name of the environment variable that can overwrite the default configuration path.
Variables ¶
This section is empty.
Functions ¶
func Home ¶ added in v0.14.0
func Home() string
Home returns the user home directory using the environment variable HOME or the os/user package.
func ReleaseDate ¶
func ReleaseDate() string
ReleaseDate returns the time of when the binary was built
func StepAbs ¶ added in v0.14.0
StepAbs returns the given path relative to the StepPath if it's not an absolute path, relative to the home directory using the special string "~/", or relative to the working directory using "./"
Relative paths like 'certs/root_ca.crt' will be converted to '$STEPPATH/certs/root_ca.crt', but paths like './certs/root_ca.crt' will be relative to the current directory. Home relative paths like ~/certs/root_ca.crt will be converted to '$HOME/certs/root_ca.crt'. And absolute paths like '/certs/root_ca.crt' will remain the same.
Types ¶
This section is empty.