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

fix: do not prompt on supplying template as an argument. #1527

Merged
merged 4 commits into from
Feb 25, 2021

Conversation

jamesgeorge007
Copy link
Contributor

@jamesgeorge007 jamesgeorge007 commented Feb 4, 2021

What kind of change does this PR introduce?
patch

Did you add tests for your changes?
Nope

Summary
Supplying the preactjs-template as an argument doesn't show the respective prompt.

#1523

Does this PR introduce a breaking change?
Nope

Other information
N/A

@jamesgeorge007 jamesgeorge007 requested a review from a team as a code owner February 4, 2021 07:45
@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2021

🦋 Changeset detected

Latest commit: 92667e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rschristian
Copy link
Member

Definitely don't think we want to deprecate anything here. This would also be a major, not a minor, as all deprecations are.

We just need to clean up the ambiguity/consistency between the docs and actual commands while also fixing that issue with the flag not existing. I don't think there's any need to break the existing behavior like this.

@jamesgeorge007 jamesgeorge007 changed the title feat: add --template flag for the create command fix: do not prompt on supplying template as an argument. Feb 4, 2021
@rschristian
Copy link
Member

I do agree with your original work and I think it's something we should look into, getting all of the commands a bit more consistent. It was just that a breaking change is so far away from being merge-able in all likelihood that it wouldn't solve the immediate issue of the flag not existing.

I might end up copying your original commit over to a more long term PR where the API of the CLI can be more properly considered.

Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ForsakenHarmony ForsakenHarmony merged commit 977d59a into preactjs:master Feb 25, 2021
@preact-bot preact-bot mentioned this pull request Feb 25, 2021
@jamesgeorge007 jamesgeorge007 deleted the feat/create branch February 25, 2021 07:56
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

Successfully merging this pull request may close these issues.

3 participants