Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolString ¶
type BoolString string
func NewBoolString ¶ added in v0.0.7
func NewBoolString(b bool) BoolString
func (BoolString) IsTruthy ¶
func (b BoolString) IsTruthy() bool
type DiscernPathInfo ¶
type DiscernPathInfo func(path string) (fs.PathExistential, fs.PathType)
type Env ¶
type Env struct { PersonalAccessToken string `env:"PERSONAL_ACCESS_TOKEN" yaml:"personal_access_token"` ApiUrl string `env:"API_URL" yaml:"api_url"` WorkingDirectory string `env:"WORKING_DIRECTORY" yaml:"working_directory"` IsMirror BoolString `env:"IS_MIRROR" yaml:"is_mirror"` }
func LoadEnvironmentYamlFile ¶
func LoadEnvironmentYamlFile(read ReadYamlFile) *Env
type EnvironmentVariableKey ¶
type EnvironmentVariableKey string
const ( PersonalAccessToken EnvironmentVariableKey = "PERSONAL_ACCESS_TOKEN" ApiUrl EnvironmentVariableKey = "API_URL" WorkingDirectory EnvironmentVariableKey = "WORKING_DIRECTORY" )
type LoadStatus ¶
type LoadStatus int8
type ReadYamlFile ¶
Click to show internal directories.
Click to hide internal directories.