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
It would be useful to validate (e.g. after making changes, pre-commit) the syntax of a taskfile (e.g. task --validate Taskfile.yaml) without needing to execute all commands in it in a dry-run mode.
By default, it the yaml has unknown keys, this should be a validation error. That's because it's a likely typo.
However, and this is just a nice to have, we should consider allowing to ignore such error (by turning them into warning) in case someone is using non-standard keys intentionally, e.g. for external tools also reading from Taskfile.yaml. But again, this part is merely something to consider.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be useful to validate (e.g. after making changes, pre-commit) the syntax of a taskfile (e.g.
task --validate Taskfile.yaml
) without needing to execute all commands in it in a dry-run mode.By default, it the yaml has unknown keys, this should be a validation error. That's because it's a likely typo.
However, and this is just a nice to have, we should consider allowing to ignore such error (by turning them into warning) in case someone is using non-standard keys intentionally, e.g. for external tools also reading from Taskfile.yaml. But again, this part is merely something to consider.
Beta Was this translation helpful? Give feedback.
All reactions