feat: scaffold Astro + Tailwind project
This commit is contained in:
24
node_modules/astro/dist/cli/info/infra/clack-prompt.js
generated
vendored
Normal file
24
node_modules/astro/dist/cli/info/infra/clack-prompt.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { confirm } from "@clack/prompts";
|
||||
class ClackPrompt {
|
||||
#force;
|
||||
constructor({ force }) {
|
||||
this.#force = force;
|
||||
}
|
||||
async confirm({
|
||||
message,
|
||||
defaultValue
|
||||
}) {
|
||||
if (this.#force) {
|
||||
return true;
|
||||
}
|
||||
const response = await confirm({
|
||||
message,
|
||||
initialValue: defaultValue,
|
||||
withGuide: false
|
||||
});
|
||||
return response === true;
|
||||
}
|
||||
}
|
||||
export {
|
||||
ClackPrompt
|
||||
};
|
||||
Reference in New Issue
Block a user