Fix typo: Enviroment -> Environment

This commit is contained in:
NI
2020-08-17 12:56:03 +08:00
parent b1b5317ec9
commit 441374c0d4
2 changed files with 6 additions and 4 deletions

View File

@@ -227,9 +227,9 @@ Here is all the options of a configuration file:
// - "file://": Load Meta value from given file. // - "file://": Load Meta value from given file.
// Example: file:///home/user/.ssh/private_key // Example: file:///home/user/.ssh/private_key
// (The file path is /home/user/.ssh/private_key) // (The file path is /home/user/.ssh/private_key)
// - "enviroment://": Load Meta value from an Enviroment Variable. // - "environment://": Load Meta value from an Environment Variable.
// Example: enviroment://PRIVATE_KEY_DATA // Example: environment://PRIVATE_KEY_DATA
// (The name of the target enviroment variable is // (The name of the target environment variable is
// PRIVATE_KEY_DATA) // PRIVATE_KEY_DATA)
// //
// All data in Meta is loaded during start up, and will not be updated // All data in Meta is loaded during start up, and will not be updated

View File

@@ -47,7 +47,9 @@ func (s String) Parse() (string, error) {
return string(fData), nil return string(fData), nil
case "enviroment": case "enviroment": // You see what I did there. Remove this a later
fallthrough
case "environment":
return os.Getenv(ss[sSchemeLeadEnd:]), nil return os.Getenv(ss[sSchemeLeadEnd:]), nil
case "literal": case "literal":