-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add indicator what's included in "run all" to list commands (#664)
Simple `*` at the end of the command means what's included in `run --all` when running `runme list` or `runme beta list`.
- Loading branch information
1 parent
77ace52
commit 2f6f670
Showing
11 changed files
with
151 additions
and
41 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
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 @@ | ||
# prints an asterisk next to included tasks | ||
exec runme beta list | ||
cmp stdout result-list.txt | ||
! stderr . | ||
|
||
-- INCLUDED.md -- | ||
```sh {"name": "included"} | ||
echo included | ||
``` | ||
|
||
-- EXCLUDED.md -- | ||
```sh {"name": "excluded", "excludeFromRunAll": true} | ||
echo excluded | ||
``` | ||
|
||
-- result-list.txt -- | ||
NAME FILE FIRST COMMAND DESCRIPTION NAMED | ||
excluded EXCLUDED.md echo excluded Yes | ||
included* INCLUDED.md echo included Yes |
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 @@ | ||
# prints an asterisk next to included tasks | ||
exec runme list | ||
cmp stdout result-list.txt | ||
! stderr . | ||
|
||
-- INCLUDED.md -- | ||
```sh {"name": "included"} | ||
echo included | ||
``` | ||
|
||
-- EXCLUDED.md -- | ||
```sh {"name": "excluded", "excludeFromRunAll": true} | ||
echo excluded | ||
``` | ||
|
||
-- result-list.txt -- | ||
NAME FILE FIRST COMMAND DESCRIPTION NAMED | ||
excluded EXCLUDED.md echo excluded Yes | ||
included* INCLUDED.md echo included Yes |
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,41 @@ | ||
env SHELL=/bin/bash | ||
exec runme run --all --category=foo --filename=PROMPTS.md | ||
cmp stdout foo-bar-list.txt | ||
! stderr . | ||
|
||
-- PROMPTS.md -- | ||
|
||
```sh {"id":"01HQQZ50CYM981N6X20VMRJYXV","promptEnv":""} | ||
echo "<empty>" | ||
``` | ||
|
||
```sh {"id":"01HQQZ60MHZEDTXWG70PMXZNHH","promptEnv":"auto"} | ||
echo "auto" | ||
``` | ||
|
||
```sh {"id":"01HQQZ6WBD82EQ39ZR7N49XV7B","promptEnv":"yes"} | ||
echo "yes" | ||
``` | ||
|
||
```sh {"id":"01HQQZ7AYPP87D1MB6D06G9BTX","promptEnv":"no"} | ||
echo "no" | ||
``` | ||
|
||
-- foo-bar-list.txt -- | ||
► Running task set-env... | ||
► ✓ Task set-env exited with code 0 | ||
► Running task print-foo... | ||
foo! | ||
► ✓ Task print-foo exited with code 0 | ||
► Running task print-bar... | ||
bar! | ||
► ✓ Task print-bar exited with code 0 | ||
-- bar-list.txt -- | ||
bar! | ||
-- buzz-bar-list.txt -- | ||
► Running task print-bar... | ||
bar! | ||
► ✓ Task print-bar exited with code 0 | ||
► Running task print-buzz... | ||
buzz! | ||
► ✓ Task print-buzz exited with code 0 |
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