Skip to content

Conversation

@hyperz111
Copy link
Contributor

In this PR, i add clearPromptOnDone option for some prompts like on inquirer.
The prompt who get clearPromptOnDone option are:

  • autocomplete
  • autocompleteMultiselect
  • confirm
  • groupMultiselect
  • multiselect
  • password
  • path
  • selectKey
  • select
  • text

@changeset-bot
Copy link

changeset-bot bot commented Sep 9, 2025

⚠️ No Changeset found

Latest commit: 21308d9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 9, 2025

@example/basic@example/changesets

npm i https://pkg.pr.new/bombshell-dev/clack/@clack/core@395
npm i https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@395

commit: 21308d9

@hyperz111
Copy link
Contributor Author

hyperz111 commented Sep 10, 2025

@43081j, do we need this feature?

@43081j
Copy link
Collaborator

43081j commented Sep 19, 2025

sorry i have taken a while to get to this!

honestly we probably don't need it yet unless you've seen a use case somewhere. i want to avoid adding functionality unless there is demand for it as thats how alternative libraries ended up bloated

if we do one day need this feature, i'd be tempted to just document that you can do it yourself at the call site:

const input = await text(opts);
clearTerminal(); // pull this from sister ansi or something

@hyperz111
Copy link
Contributor Author

hyperz111 commented Sep 19, 2025

sorry i have taken a while to get to this!

honestly we probably don't need it yet unless you've seen a use case somewhere. i want to avoid adding functionality unless there is demand for it as thats how alternative libraries ended up bloated

if we do one day need this feature, i'd be tempted to just document that you can do it yourself at the call site:

So, i should close this?

@43081j
Copy link
Collaborator

43081j commented Sep 19, 2025

I'll close it for now and we can easily pick it back up one day if needed 👍

The effort is much appreciated still

@43081j 43081j closed this Sep 19, 2025
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.

2 participants