@@ -14,15 +14,15 @@ type Action int
1414const (
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
2626type 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.
141141func getDeclarationCommand (env models.EnvironmentItemModel , envs map [string ]string ) (Command , error ) {
142142 envKey , envValue , err := env .GetKeyValuePair ()
0 commit comments