Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'd like to be able to run interactive commands. #15

Open
AlbertClo opened this issue Nov 10, 2024 · 4 comments
Open

I'd like to be able to run interactive commands. #15

AlbertClo opened this issue Nov 10, 2024 · 4 comments

Comments

@AlbertClo
Copy link

AlbertClo commented Nov 10, 2024

Sometimes a command might need some interaction from time to time. E.g. when I'm running Storybook, and the default port for it is occupied, it asks if you want to run it on another port.

Currently I don't see a way to tell Storybook to continue running.

Screenshot_20241110_201236

@simonhamp
Copy link

You have a couple of options here with Storybook:

  1. You could be explicit about the port in your command. I haven't tried this but something like may work e.g. npm run storybook -- -p6007
  2. You can try passing the -y flag which should answer yes to any prompts: npm run storybook -- -y

Note the -- before passing Storybook-specific flags/parameters - this is how the shell & npm know to pass these down to storybook itself. Otherwise you'd have to write out the full command from your package.json->scripts->storybook

@AlbertClo
Copy link
Author

Yeah, I could do that. But this just an example of a general problem. There are many other reasons to want to be able to drop into interactive mode.

@aarondfrancis
Copy link
Owner

Working on this in #4!

@antoniofrignani
Copy link

Another use case for this is to have a Tinker tab opened to test simple commands directly from within it.

Actually, if i try to add a Tinker tab, it dies poorly 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants