Skip to content

Commit 4a3e6bd

Browse files
authored
Fix typos (#220)
* fix typos in expand.go * fix typos in README
1 parent 54d928c commit 4a3e6bd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ envman run bash -c 'echo "Environment test: $MY_TEST_ENV_KEY"'
8787
Add/store an environment variable:
8888

8989
```
90-
envman add --key MY_SECERT_ENV_KEY --value 'this is a secret value' --sensitive
90+
envman add --key MY_SECRET_ENV_KEY --value 'this is a secret value' --sensitive
9191
```
9292

9393
*Why `bash -c` is required? Because `echo` in itself

env/expand.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ type Action int
1414
const (
1515
// InvalidAction represents an unexpected state
1616
InvalidAction Action = iota + 1
17-
// SetAction is an environment variable assignement, like os.Setenv
17+
// SetAction is an environment variable assignment, like os.Setenv
1818
SetAction
1919
// UnsetAction is an action to clear (if existing) an environment variable, like os.Unsetenv
2020
UnsetAction
2121
// SkipAction means that no action is performed (usually for an env with an empty value)
2222
SkipAction
2323
)
2424

25-
// Command describes an action performed on an envrionment variable
25+
// Command describes an action performed on an environment variable
2626
type Command struct {
2727
Action Action
2828
Variable Variable
@@ -125,7 +125,7 @@ func GetDeclarationsSideEffects(newEnvs []models.EnvironmentItemModel, envSource
125125
delete(evaluatedNewEnvs, command.Variable.Key)
126126
case SkipAction:
127127
default:
128-
return DeclarationSideEffects{}, fmt.Errorf("invalid case for environement declaration action: %#v", command)
128+
return DeclarationSideEffects{}, fmt.Errorf("invalid case for environment declaration action: %#v", command)
129129
}
130130
}
131131

@@ -136,7 +136,7 @@ func GetDeclarationsSideEffects(newEnvs []models.EnvironmentItemModel, envSource
136136
}, nil
137137
}
138138

139-
// getDeclarationCommand maps a variable to be daclered (env) to an expanded env key and value.
139+
// getDeclarationCommand maps a variable to be declared (env) to an expanded env key and value.
140140
// The current process environment is not changed.
141141
func getDeclarationCommand(env models.EnvironmentItemModel, envs map[string]string) (Command, error) {
142142
envKey, envValue, err := env.GetKeyValuePair()

0 commit comments

Comments
 (0)