-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic tests for multiple args option for other task types
Also progress a little further on reducing test dependency on echo and env
- Loading branch information
Showing
16 changed files
with
150 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
tool.poe.tasks.show_env = "env" | ||
tool.poe.tasks.show_env = "poe_test_env" | ||
|
||
[tool.poe.tasks.echo] | ||
cmd = "echo POE_ROOT:$POE_ROOT ${BEST_PASSWORD}, task_args:" | ||
cmd = "poe_test_echo POE_ROOT:$POE_ROOT ${BEST_PASSWORD}, task_args:" | ||
help = "It says what you say" | ||
env = { BEST_PASSWORD = "Password1" } | ||
|
||
[tool.poe.tasks.greet] | ||
shell = "echo $formal_greeting $subject" | ||
shell = "poe_test_echo $formal_greeting $subject" | ||
args = ["formal-greeting", "subject"] | ||
|
||
[tool.poe.tasks.surfin-bird] | ||
cmd = "echo $WORD is the word" | ||
cmd = "poe_test_echo $WORD is the word" | ||
env = { WORD = "${SOME_INPUT_VAR}"} | ||
|
||
[tool.poe.tasks.multiple-value-arg] | ||
cmd = "poe_test_echo \"first: ${first} second: ${second}\"" | ||
|
||
[[tool.poe.tasks.multiple-value-arg.args]] | ||
name = "first" | ||
positional = true | ||
|
||
[[tool.poe.tasks.multiple-value-arg.args]] | ||
name = "second" | ||
positional = true | ||
multiple = true | ||
type = "integer" |
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
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ include = "greet.toml" | |
|
||
|
||
[tool.poe.tasks.echo] | ||
cmd = "echo" | ||
cmd = "poe_test_echo" | ||
help = "says what you say" |
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
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
Oops, something went wrong.