Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Custom CLI commands to be any (complex) shell commands (#260)
* Allow Custom CLI commands to be any (complex) shell commands ... using mvdan.cc/sh/v3's shell parser and interpreter. Also execute "valueCommand commands" the same way when defining environment variables for custom CLI commands. * Use full package reference Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> * Actually, it's really 'mvdan.cc/sh/v3' * Prevent potential parsing errors and quote words in custom commands * In verbose mode, display shell command earlier This could help debugging failing commands ;-) * Factoring shell script execution Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
- Loading branch information
1 parent
a817870
commit 4bbe53b
Showing
5 changed files
with
86 additions
and
21 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
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