lazy-runner
v1.1.0
Published
Interactive CLI to select and run predefined commands
Maintainers
Readme
lazy-runner
lazy-runner lets you register multiple commands and launch one interactively from the terminal.
Installation
npm install -g lazy-runnerConfiguration
Create ~/.config/lazy-runner/settings.json:
{
"options": [
{
"name": "AI",
"options": [
{ "name": "claude code", "command": "claude" },
{ "name": "codex", "command": "codex" },
{ "name": "gemini", "command": "gemini" }
]
},
{
"name": "upgrade",
"options": [
{ "name": "claude code", "command": "brew upgrade claude-code" },
{ "name": "codex", "command": "bun install -g @openai/codex@latest" }
]
},
{
"name": "config",
"options": [
{ "name": "lazy-runner", "command": "nvim ~/.config/lazy-runner/settings.json" }
]
}
],
"hideOutputMessages": true
}- Each entry needs a
nameand either acommand(leaf) or nestedoptions(group). Groups must contain at least one runnable command. hideOutputMessages(optional, defaultfalse): Set totrueto suppress theRunning .../Command completedlogs.
Usage
lr❯ Select a command to run
● AI (3 options)
○ upgrade (2 options)
○ config (1 options)
❯ Select a command to run (AI)
● claude code (claude)
○ codex
○ gemini- A consola-powered select prompt lists all
options[].name. - Choose an entry; if it is a group, you drill down to its children. Selecting a leaf runs the associated
command.
License
MIT
