-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from larsewi/order
CFE-4099: Fixed bug where order of keys breaks set-input
- Loading branch information
Showing
4 changed files
with
59 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
set -e | ||
set -x | ||
cd tests/ | ||
mkdir -p ./tmp/ | ||
cd ./tmp/ | ||
touch cfbs.json && rm cfbs.json | ||
rm -rf .git | ||
rm -rf delete-files | ||
|
||
cfbs --non-interactive init | ||
cfbs --non-interactive add delete-files@0.0.1 | ||
echo '[ | ||
{ | ||
"bundle": "delete_files", | ||
"label": "Files", | ||
"namespace": "delete_files", | ||
"response": [ | ||
{ | ||
"path": "/tmp/test", | ||
"why": "no tests, please" | ||
} | ||
], | ||
"subtype": [ | ||
{ | ||
"key": "path", | ||
"label": "Path", | ||
"question": "Path to file", | ||
"type": "string" | ||
}, | ||
{ | ||
"default": "Unknown", | ||
"key": "why", | ||
"label": "Why", | ||
"question": "Why should this file be deleted?", | ||
"type": "string" | ||
} | ||
], | ||
"type": "list", | ||
"variable": "files", | ||
"while": "Specify another file you want deleted on your hosts?" | ||
} | ||
]' | cfbs --log=debug set-input delete-files - |
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