mise generate task-docs
- Usage:
mise generate task-docs [FLAGS] - Effect: modifies state
- Source code:
src/cli/generate/task_docs.rs
Generate Markdown documentation for project tasks
Prints to stdout by default. Use --output to write a file, --inject to replace a marked section, or --multi for one file per task.
Flags
-i --inject— Insert the documentation into an existing fileThis will look for a special comment,
<!-- mise-tasks -->, and replace it with the generated documentation. It will replace everything between the comment and the next comment,<!-- /mise-tasks -->so it can be run multiple times on the same file to update the documentation. The file must already contain both comments; mise errors instead of modifying the file if they are missing.-I --index— Write only an index of tasks, intended for use with--multi-m --multi— Render each task as a separate document; requires--outputto be a directory-o --output <OUTPUT>— Write the generated docs to a file or directory-r --root <ROOT>— Root directory to search for tasks-s --style <STYLE>— Documentation style:simplelists tasks,detaileddocuments each task's usageChoices:
simple,detailedDefault:
simple-h --help— Print help
Examples
mise generate task-docs --style detailed
mise generate task-docs --output TASKS.mdREADME.md must already contain both mise-tasks marker comments
mise generate task-docs --inject --output README.md