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

[ideas] description field for targets #1235

Closed
1 task done
wlandau opened this issue Feb 19, 2024 Discussed in #1230 · 1 comment
Closed
1 task done

[ideas] description field for targets #1235

wlandau opened this issue Feb 19, 2024 Discussed in #1230 · 1 comment

Comments

@wlandau
Copy link
Collaborator

wlandau commented Feb 19, 2024

Discussed in #1230, posted by @tjmahr

Originally posted by tjmahr February 9, 2024

Help

Description

Sometimes I wish I had an description field for documenting what each target it is a more human-friendly way.

tar_target(
  name,
  command,
  description = "a field where we can briefly describe the target",
)

One could write a code comment, but this approach would be better because it could show up in tar_manifest(). It would also help generate READMEs.

Arguably, we should make the commands into simple functions and document those functions, but the trouble I have is having several end-products and recalling what they are.

@wlandau
Copy link
Collaborator Author

wlandau commented Feb 19, 2024

Descriptions could also power a new way to select and group targets: #1136 and #1196

@wlandau wlandau mentioned this issue Feb 19, 2024
2 tasks
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