feat: add direct command execution without templates#30
Open
feat: add direct command execution without templates#30
Conversation
Add the ability to run and log commands directly without requiring a template, making runbox more convenient for ad-hoc command execution. Changes: - Add `runbox run -- <command>` syntax for direct execution - Add `runbox log -- <command>` as an alias for direct runs - Add `source` field to Run struct to distinguish direct vs template runs - Support options: --timeout, --env, --cwd, --no-git, --runtime - Capture git context (commit + uncommitted changes) for reproducibility - Create Run records with source: "direct" field - Add comprehensive integration tests for direct execution The `--` separator distinguishes direct commands from template-based runs. Example usage: runbox run -- echo hello runbox run --runtime tmux -- python train.py --epochs 10 runbox log -- make test ISSUE-027 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the ability to run and log commands directly without requiring a template, making runbox more convenient for ad-hoc command execution.
New Commands
runbox run -- <command>- Execute a command directly and log it as a Runrunbox log -- <command>- Alias forrunbox run --Features
--runtime <bg|tmux>- Execution runtime (default: bg)--timeout <seconds>- Command timeout (default: 0 = no timeout)--env KEY=VALUE- Additional environment variables--cwd <path>- Working directory (default: current)--no-git- Skip git context capture"source": "direct"to distinguish from template-based runsrunbox ps,runbox show,runbox logs,runbox replayExample Usage
Test plan
Related Issue
ISSUE-027
🤖 Generated with Claude Code