Support running a command after creating new folder
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 4k
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request: Run Command After Creating Folder
Currently, try creates new directories but doesn't support running initialization commands.
Proposed Feature: Add a --run flag or similar option to execute a command after creating and entering the new directory.
Example Usage:
try . --run "npx motia@latest create"
This would:
- Create a dated directory (e.g.,
2025-01-06-my-project) - Change into the directory
- Execute the specified command
Use Cases:
- Initialize projects with framework-specific commands
- Run setup scripts after creating experiment directories
- Automate common post-creation tasks
This would be particularly useful for quickly starting new experiments with specific tooling.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the try command's option parsing and directory-creation flow, since the issue names no files or tests. Confirm how the command enters the new directory, then verify that the --run example executes afterward while existing directory creation still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100