helpers

package
v2.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvPrefix = ""

EnvPrefix is the prefix for environment variables that are used by the CLI. It should match the one used for viper in the CLI.

Functions

func GetNodeHomeDirectory

func GetNodeHomeDirectory(name string) (string, error)

GetNodeHomeDirectory gets the home directory of the node (where the config is located). It parses the home flag if set if the `(PREFIX)_HOME` environment variable if set (and ignores name). When no prefix is set, it reads the `NODE_HOME` environment variable. Otherwise, it returns the default home directory given its name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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