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

How to add default value for prompt #436

@danielh-official

Description

@danielh-official

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions