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

Interactive mode #359

Closed
bato3 opened this issue May 15, 2024 · 2 comments
Closed

Interactive mode #359

bato3 opened this issue May 15, 2024 · 2 comments
Labels
support question Support question that may reveal a bug

Comments

@bato3
Copy link

bato3 commented May 15, 2024

Topic

Prisma (database)

Description

The standard addition process requires selecting which database engine will be used. This is possible through parameters. But it would be nice if a DSN (connection string) was created along the way.

BTW: is possible to run command?

BTW2: Is possible to display message to usser? (eg.: Run command xxxxx to finish proces)

Describe the solution you'd like

I believe the adding process should be interactive, just like creating a Svelte/SvelteKit project.

Parameters may seem much faster, but the process of adding them is not frequent enough to force us to search for a list of parameters.

Additionally, in interactive mode you can create more complex adders.

@bato3 bato3 added the enhancement New feature or request label May 15, 2024
@manuel3108 manuel3108 added support question Support question that may reveal a bug and removed enhancement New feature or request labels May 16, 2024
@manuel3108
Copy link
Member

Relates #248

BTW: is possible to run command?

What do you mean here? Would you like to execute an external node command to initiate the setup of another tool? If that's the case, see the storybook adder, this is already supported (Line 20)

export const adder = defineAdderConfig({
metadata: {
...generateAdderInfo(pkg),
name: "Storybook",
description: "Build UIs without the grunt work",
category: categories.styling,
environments: { kit: true, svelte: true },
website: {
logo: "./storybook.svg",
keywords: ["storybook", "styling", "testing", "documentation", "storybook-svelte-csf", "svelte-csf"],
documentation: "https://storybook.js.org/docs/get-started",
},
},
options,
integrationType: "external",
command: "storybook init --skip-install",
environment: { CI: "true" },
installDependencies: true,
});

BTW2: Is possible to display message to usser? (eg.: Run command xxxxx to finish proces)

This is not currently possible, but would probably be a nice addition

I believe the adding process should be interactive, just like creating a Svelte/SvelteKit project.

Parameters may seem much faster, but the process of adding them is not frequent enough to force us to search for a list of parameters.

Additionally, in interactive mode you can create more complex adders.

I'm not entirely sure what you mean. It's already possible to execute an adder in interactive mode. You can just omit all parameters like this npx @svelte-add/bootstrap@latest

If you want to interactively choose all tools that you want to add, you can already use npx svelte-add@latest

@manuel3108
Copy link
Member

missing author feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support question Support question that may reveal a bug
Projects
None yet
Development

No branches or pull requests

2 participants