Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

How to add default value for prompt #436

Open
danielh-official opened this issue Oct 23, 2021 · 0 comments
Open

How to add default value for prompt #436

danielh-official opened this issue Oct 23, 2021 · 0 comments

Comments

@danielh-official
Copy link

Let's say I want to show a greyed-out value next to the colon (in parenthesis) when prompting. Like how Node does it when you run npm init and it asks for the name of your directory. It automatically guesses based on folder or repo name and shows it in the aforementioned format. You don't have to manually enter it.

Example

npm init

name: (name-of-repo)

You can use the default name given to you or enter it manually.

Are we able to replicate that in this framework?

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

No branches or pull requests

1 participant