Skip to content

Conversation

@sacrosanctic
Copy link
Contributor

closes #863

I cannot reuse the process built into createKit to update README.md as the order of operation is createKit ->runAddonsApply -> buildArgs, at that point it is too late to use createKit. Thus, a manual approach was used to update the README.md.

@changeset-bot
Copy link

changeset-bot bot commented Dec 28, 2025

🦋 Changeset detected

Latest commit: 669aaf1

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

This PR includes changesets to release 1 package
Name Type
sv 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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 28, 2025

Open in StackBlitz

npx https://pkg.pr.new/sveltejs/cli/svelte-migrate@864
npx https://pkg.pr.new/sveltejs/cli/sv@864

commit: 669aaf1

@manuel3108
Copy link
Member

Looks like the tests are failing. You can easily reproduce this by running pnpm test --project cli locally. To update the snapshots automatically, you can run pnpm vitest --project cli (note vitest instead of test), which starts the tests in debug mode. After the tests have initially run, you can press h or u to update the snapshots.

Apart from that I will leave this open for @jycouet so that he can check if and how this will conflict with the changes from #684

@sacrosanctic
Copy link
Contributor Author

There are still failing tests, but I'm going to leave it as is until @jycouet gives it a pass, as this may be the wrong approach.

Copy link
Contributor

@jycouet jycouet left a comment

Choose a reason for hiding this comment

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

Tests are failing on windows because of / or \
The issue is more deep than just the args stuff. it's the [path] that should use something like path.posix

I just tested on windows and npx sv create hello/you is working. So we should make it / in all OS imo.

if (fromCommand === 'add') common.logArgs(packageManager, 'add', argsFormattedAddons);
if (fromCommand === 'add') {
const prompt = common.buildArgs(packageManager, 'add', argsFormattedAddons);
p.log.message(`To rerun this command without prompts, run:\n${pc.dim(prompt)}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Look at the other comment for location.
Having a small text on top, why not... But very small imo. (I did a few when the feature was crafted, but didn't find something nice)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What about:

  • To re-run without prompts:
  • Reproducible CLI command:
  • Non-interactive:
  • Automate with:
  • Skip prompts:
  • Run again:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Contributor

Choose a reason for hiding this comment

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

  • Re-run without questions
  • Re-run without prompts
  • Run again, no questions asked
  • Run again, no prompts

I this that the text should by gray, maybe try with log info as well to have a dot in timeline ? (I think I didn't like it much, but with a title maybe... Maybe not 😅

@jycouet
Copy link
Contributor

jycouet commented Dec 31, 2025

Right now, it's with the blue dot in the timeline, I tried other style to see:
image

Yeah, the blu is probably the best 👍

I'll update a few thing in the code s00n before merging

Copy link
Contributor

@jycouet jycouet left a comment

Choose a reason for hiding this comment

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

The readme is not updated when we do just a add cmd in a second step. It's probably "normal", but I would like to note it here.

Copy link
Contributor

@jycouet jycouet left a comment

Choose a reason for hiding this comment

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

Look OK to me now

@jycouet jycouet merged commit c282164 into sveltejs:main Jan 7, 2026
8 checks passed
@github-actions github-actions bot mentioned this pull request Jan 7, 2026
@sacrosanctic sacrosanctic deleted the document-prompts branch January 7, 2026 23:59
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.

put the reproducible cli command in the readme.md

3 participants