deno task
descriptions
#14084
jespertheend
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it could be nice to have a way to describe what tasks do. I realise it is possible to add comments above the tasks when, but I'm specifically looking for a way to show the descriptions when running
deno task
(without specifying a task).The commands from tasks are often not very readable, so if a user is new to a repository it can be hard to find the task you're looking for. And having to open
deno.json
just to see the comments is not ideal.I'm thinking maybe the comments themselves can be used for printing descriptions. But I reckon this might make things a lot more difficult to parse. So perhaps something like this is more appropriate:
By the way, I would personally be fine with completely hiding the command for tasks that have a description. It would remove a lot of visual clutter. It might not be the best security wise, but generally speaking if I'm running tasks from a project, I already trust the project enough to not worry about any malicious commands.
Beta Was this translation helpful? Give feedback.
All reactions