tobi / tobi/try

Support running a command after creating new folder

Open
#80 1 comment 1 reaction 0 assignees View on GitHub

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:

  1. Create a dated directory (e.g., 2025-01-06-my-project)
  2. Change into the directory
  3. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.