-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix bug when slicing os.Args * add test when slicing os.Args in cmd parsing * fix bug when validating circular depends - check if same command * add tests for circular deps validation * add global env * add mixins and update doc
- Loading branch information
Showing
13 changed files
with
446 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
env: | ||
DOCKER_BUILDKIT: "1" | ||
|
||
commands: | ||
build-docker: | ||
cmd: docker build -t lets -f docker/Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package commands | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
|
||
func TestConvertEnvMapToList(t *testing.T) { | ||
t.Run("should convert map to list of key=val", func(t *testing.T) { | ||
env := make(map[string]string) | ||
env["ONE"] = "1" | ||
envList := convertEnvMapToList(env) | ||
|
||
exp := "ONE=1" | ||
if envList[0] != exp { | ||
t.Errorf("failed to convert env map to list. \nexp: %s\ngot: %s", exp, envList[0]) | ||
} | ||
}) | ||
} |
Oops, something went wrong.