You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ task hello
task: Failed to parse Taskfile.yaml:
yaml: line 6: invalid keys in command
Turns out, both cmd and silence are invalid keys within defer, which was surprising to me since the examples look like the syntax for a non-deferred command.
Not sure if this is a bug or a feature request, but I'm going to guess bug since this was a surprising outcome (to me at least).
Is there some reason that the defer structure isn't just a Cmd that disallows nested defers?
The text was updated successfully, but these errors were encountered:
I tried to use the typical
Cmd
structure within adefer
-ed command:And running
task hello
resulted in:Turns out, both
cmd
andsilence
are invalid keys withindefer
, which was surprising to me since the examples look like the syntax for a non-deferred command.Not sure if this is a bug or a feature request, but I'm going to guess bug since this was a surprising outcome (to me at least).
Is there some reason that the
defer
structure isn't just aCmd
that disallows nesteddefer
s?The text was updated successfully, but these errors were encountered: