Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec-task description #1681

Open
eval opened this issue Mar 13, 2024 · 0 comments
Open

exec-task description #1681

eval opened this issue Mar 13, 2024 · 0 comments

Comments

@eval
Copy link
Contributor

eval commented Mar 13, 2024

Is your feature request related to a problem? Please describe.

Given the following tasks:

;; bb.edn
:tasks {
  foo clojure.core/prn
  bar (exec 'clojure.core/prn)
}

...bb tasks will show a description for foo but not for bar:

$ bb tasks
The following tasks are available:

foo Prints the object(s) to the output stream that is the current value
bar

Describe the solution you'd like

The description of an 'exec-task' is extracted from the docstring just like for a qualified symbol.

Describe alternatives you've considered
It seems wrapping the exec-form in e.g. {:doc "duplicated doc" :task (exec ,,,,)} is currently the way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant