package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: May 18, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Config represents data of environment variables and cache file path
New creates Config instance
Add adds environment variable with given key and given value
Ask asks the user for input using the given query
Refresh deletes existing file cache
type Input struct {
When bool `json:"when,omitempty"`
Message string `json:"message,omitempty"`
Help string `json:"help,omitempty"`
}
Input represents value input from terminal
type Variable struct {
Value string `json:"value,omitempty"`
Default string `json:"default,omitempty"`
Input Input `json:"input,omitempty"`
}
Variable represents environment variable
Variables is a collection of Variable and its name
Source Files
¶
Click to show internal directories.
Click to hide internal directories.