Documentation ¶
Index ¶
- Constants
- Variables
- func AddEnv(envStorePth string, key string, value string, ...) error
- func ClearEnvs(envStorePth string) error
- func InitEnvStore(envStorePth string, clear bool) error
- func ParseEnvsYML(bytes []byte) ([]models.EnvironmentItemModel, error)
- func ReadAndEvaluateEnvs(envStorePth string, envSource env.EnvironmentSource) ([]string, error)
- func ReadEnvs(pth string) ([]models.EnvironmentItemModel, error)
- func ReadEnvsJSONList(envStorePth string, expand, sensitiveOnly bool, ...) (models.EnvsJSONListModel, error)
- func ReadEnvsOrCreateEmptyList(envStorePth string) ([]models.EnvironmentItemModel, error)
- func Run()
- func UpdateOrAddToEnvlist(oldEnvSlice []models.EnvironmentItemModel, newEnv models.EnvironmentItemModel, ...) ([]models.EnvironmentItemModel, error)
- func WriteEnvMapToFile(pth string, envs []models.EnvironmentItemModel) error
- type CommandModel
- type VersionOutputModel
Constants ¶
View Source
const ( // PathEnvKey ... PathEnvKey = "ENVMAN_ENVSTORE_PATH" // PathKey ... PathKey = "path" // LogLevelEnvKey ... LogLevelEnvKey = "LOGLEVEL" // LogLevelKey ... LogLevelKey = "loglevel" // KeyKey ... KeyKey = "key" // ValueKey ... ValueKey = "value" // ValueFileKey ... ValueFileKey = "valuefile" // NoExpandKey ... NoExpandKey = "no-expand" // AppendKey ... AppendKey = "append" // SkipIfEmptyKey ... SkipIfEmptyKey = "skip-if-empty" // SensitiveKey ... SensitiveKey = "sensitive" // ToolEnvKey ... ToolEnvKey = "ENVMAN_TOOLMODE" // ToolKey ... ToolKey = "tool" // ClearKey .... ClearKey = "clear" // HelpKey ... HelpKey = "help" // VersionKey ... VersionKey = "version" // ExpandKey ... ExpandKey = "expand" // SensitiveOnlyKey ... SensitiveOnlyKey = "sensitive-only" // FormatKey ... FormatKey = "format" // OutputFormatRaw ... OutputFormatRaw = "raw" // OutputFormatJSON ... OutputFormatJSON = "json" )
Variables ¶
View Source
var ( // CurrentEnvStoreFilePath ... CurrentEnvStoreFilePath string // ToolMode ... ToolMode bool )
Functions ¶
func AddEnv ¶
func AddEnv(envStorePth string, key string, value string, expand, replace, skipIfEmpty, sensitive bool) error
AddEnv ...
func ParseEnvsYML ¶
func ParseEnvsYML(bytes []byte) ([]models.EnvironmentItemModel, error)
ParseEnvsYML ...
func ReadAndEvaluateEnvs ¶
func ReadAndEvaluateEnvs(envStorePth string, envSource env.EnvironmentSource) ([]string, error)
ReadAndEvaluateEnvs ...
func ReadEnvsJSONList ¶
func ReadEnvsJSONList(envStorePth string, expand, sensitiveOnly bool, envSource env.EnvironmentSource) (models.EnvsJSONListModel, error)
ReadEnvsJSONList ...
func ReadEnvsOrCreateEmptyList ¶
func ReadEnvsOrCreateEmptyList(envStorePth string) ([]models.EnvironmentItemModel, error)
ReadEnvsOrCreateEmptyList ...
func UpdateOrAddToEnvlist ¶
func UpdateOrAddToEnvlist(oldEnvSlice []models.EnvironmentItemModel, newEnv models.EnvironmentItemModel, replace bool) ([]models.EnvironmentItemModel, error)
UpdateOrAddToEnvlist ...
func WriteEnvMapToFile ¶
func WriteEnvMapToFile(pth string, envs []models.EnvironmentItemModel) error
WriteEnvMapToFile ...
Types ¶
type CommandModel ¶
type CommandModel struct { Command string Arguments []string Environments []models.EnvironmentItemModel }
CommandModel ...
type VersionOutputModel ¶
type VersionOutputModel struct { Version string `json:"version"` BuildNumber string `json:"build_number"` Commit string `json:"commit"` }
VersionOutputModel ...
Click to show internal directories.
Click to hide internal directories.