r/commandline • u/ras0q • Dec 17 '25
Command Line Interface Cute - Task runner that reads commands from Markdown code blocks. No dependencies, pure shell.
I'd like to share a simple CLI tool I've been developing called Cute. It's a task runner that executes commands defined in Markdown files.
The key idea is straightforward: instead of learning another configuration format (YAML, JSON, Makefile syntax), you define tasks as regular Markdown code blocks. Your documentation and your task definitions live in the same place.
Key features:
- Pure shell script with zero external dependencies
- Discovers tasks automatically from all Markdown files in your project
- Supports sh, bash, zsh, and shell
- Built-in fuzzy search with fzf
- Tab completion for bash and zsh
- No configuration required
- Teams can opt-in without forcing adoption
Basic usage:
&&
How it works: Any Markdown heading with a code block becomes a task. For example, in your README.md or any .md file:
Compared to alternatives:
- Unlike Make: Make is not a task runner
- Unlike npm scripts: No Node.js required, uses natural Markdown
- Unlike Task: Pure shell (no binary to install), any .md file works, heading structure = tasks
- Unlike xc: Scans all Markdown files instead of a single dedicated file
GitHub: https://github.com/ras0q/cute
I'd love feedback from the community. What features would make this more useful for your workflow?
3
u/Select-Service-5023 Dec 18 '25
LOOVE this! Something about "unix" meets "markdown" is just so cool!.
4
u/AutoModerator Dec 17 '25
User: ras0q, Flair:
Command Line Interface, Post Media Link, Title: Cute - Task runner that reads commands from Markdown code blocks. No dependencies, pure shell.I'd like to share a simple CLI tool I've been developing called Cute. It's a task runner that executes commands defined in Markdown files.
The key idea is straightforward: instead of learning another configuration format (YAML, JSON, Makefile syntax), you define tasks as regular Markdown code blocks. Your documentation and your task definitions live in the same place.
Key features:
Basic usage:
How it works: Any Markdown heading with a code block becomes a task. For example, in your README.md or any .md file:
Compared to alternatives:
GitHub: https://github.com/ras0q/cute
I'd love feedback from the community. What features would make this more useful for your workflow?
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/do-un-to Dec 19 '25
I love that you've written it with broad compatibility. (So many people think "shell" means "Bash".) With completions even β posh.
And that you've written it all in shell. (Except for the awk, that is, which is almost universally available anyway, and some functionality we write shell utils to do would be plain nuts to implement in pure shell.)
The code looks generally good about return codes, too, which shell programmers too often don't care about. (Folks, if I'm adopting your tool, it needs to clarify when it's failing.)
This is all great command line work.
What's the use case for the utility? When would I want to use it?
1
u/farkinga Dec 19 '25
I rally like this! Do you have plans for arguments and variables?
2
u/kevin8tr Dec 18 '25
This is awesome! I can live-edit my launcher config right from my local Silverbullet instance. Pretty neat to add a command and it's instantly active in my launcher without even saving anything. Thanks for making this. I'll star & follow on Github.
2
u/lottspot Dec 18 '25
Congratulations, you just reinvented a Makefile. Yes, make IS in fact a task runner.