sagiegurari / cargo-make

Rust task runner and build tool.
https://sagiegurari.github.io/cargo-make/
Apache License 2.0
2.46k stars 123 forks source link

List available tasks #1104

Closed joao-conde closed 2 weeks ago

joao-conde commented 2 weeks ago

Feature Description

A command to list the available tasks. Both default and user defined.

Describe The Solution You'd Like

cargo make tasks -> prints out list of user defined tasks cargo make tasks --all -> prints out list of user defined tasks and default cargo make ones

Notes

I failed to encounter this in the docs. If this exists, and is not documented, this issue should be about documenting.

joao-conde commented 2 weeks ago

I'm down to take this one if agreed upon.

sagiegurari commented 2 weeks ago

there is already a function that exists to show all tasks. there is no concept of user defined as makefiles extend each other but ther eis also a command to filter by type/group. the commands also provide multiple output formats.

checkout https://github.com/sagiegurari/cargo-make?tab=readme-ov-file#usage-cli

--list-all-steps Lists all known steps --list-category-steps

joao-conde commented 2 weeks ago

Thank you and sorry!