Replies: 1 comment 1 reply
-
With the current method of using sh, which is not a workaround, you can construct any kind of test as a precondition: directory exists, directory not exists, file exists, file not exists ... anything which the shell can do (which is everything). Now consider the suggestion, which can do one thing, and one thing only. Not ideal. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Existing workaround
Method #1
The existing workaround would be shortened to:
Note
requires
is replaced bydir.required
preconditions
check, error message, and program aborting is replaced bydir.required
Using
dir
as a simple string would continue to work for existing Taskfilesdir.required
defaults to falseMethod #2
The existing workaround would be shortened to:
I prefer method #2, as it's more compact.
Beta Was this translation helpful? Give feedback.
All reactions