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

[Enhancement] Add a prompt feedback instead of default ones #460

Open
JulSeb42 opened this issue Nov 18, 2024 · 0 comments
Open

[Enhancement] Add a prompt feedback instead of default ones #460

JulSeb42 opened this issue Nov 18, 2024 · 0 comments

Comments

@JulSeb42
Copy link

JulSeb42 commented Nov 18, 2024

I'm looking for a solution to change the default feedback when running plop. For example if we create a new page on our app; we get this:

plop.setGenerator("demo", {
    prompts: [],
    actions: [

        {
            type: "add",
            path: "./page.ts",
            template: `<h1>Hello World</h1>`,
        },
    ],
})

it would return:

✔  ++ /page.ts

I would prefer to have the possibility to change this to a custom message like this:

plop.setGenerator("demo", {
    prompts: [],
    actions: [
        "Adding your new page",
        {
            type: "add",
            path: "./page.ts",
            template: `<h1>Hello World</h1>`,
            message: "✅ Your new page was added!"
        },
    ],
})

Which would return

ℹ Adding your new page
✔  ++ /page.ts

Here I'd like to either remove the line ✔ ++ /page.ts, or having the possibility to change the message to ✅ Your new page was added!

Would this be possible? Thanks!

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

No branches or pull requests

1 participant