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

Prompt if CLI detects that it is being invoked without a version identifier, eg. npx storybook init #25454

Closed
Tracked by #25293
JReinhold opened this issue Jan 4, 2024 · 0 comments

Comments

@JReinhold
Copy link
Contributor

JReinhold commented Jan 4, 2024

When running npx storybook init (without an explicit version identifier), there are multiple outcomes and we won't know exactly what the user wants. Therefore we'll prompt users about the next action using the following logic:

if user does not specify a version on the CLI:
  if current version is latest version:
    continue with init
  elif prompt "storybook init expects a version specifier. run `npx storybook@latest init` (Y/n)":
    exec npx storybook@latest init
  else:
    echo "please run npx storybook@specifier init"
@ndelangen ndelangen closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
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

2 participants