An interactive terminal menu for the developer scripts I run every day: cloning repositories, installing and updating tools, publishing releases and starting new Rust projects. Pick an option with the arrow keys and press Enter to run it.
Built for personal use, but contributions are welcome.
With Rust installed:
cargo install --git https://github.com/joaolfp/scriptsOn a fresh Mac, scripts/setup_mac.sh installs Rust through rustup and then installs scripts:
./scripts/setup_mac.shdocker build -t scripts .
docker run -it --rm scriptsscripts| Menu option | What it runs |
|---|---|
| Clone: HeroesOfCode's repositories | hoc clone |
| Clone: My repositories | hoc m |
| Install: Releasor | cargo install releasor |
| Install: Claude | curl -fsSL https://claude.ai/install.sh | bash |
| Update: mise | brew upgrade mise |
| Update: Rust | rustup update |
| Update: Claude | claude update |
| Update: Omarchy | omarchy-update |
| Releasor | releasor -f <package>, asks for the package name |
| Create rust project | cargo new <name>, then adds the standard project files |
| Exit | Quits the menu |
The menu only runs these commands; the tools they call (hoc, brew, rustup, claude, ...) must already be installed.
Anyone can add a new option to the menu, no Rust knowledge needed. Open Claude Code in this repository and run /add-command followed by what you want, in plain words or as the exact command:
/add-command update Homebrew
/add-command brew upgrade node
/add-command git clone https://github.com/heroesofcode/swift-explorer.git
/add-command install a Node version with `mise use -g node@<version>`, asking for the versionThe agent will:
- Pick the category (
Clone:,Install:,Update:or other) and the menu label. - Write the code, register it in the menu and update the tests and docs.
- Run the tests and lint.
- Ask whether to publish: commit and push with
/commit-push, then bump the version with/prepare-version.
Try the new option with mise cli.