Update cli prompts

This commit is contained in:
Aman Varshney
2025-04-02 13:59:37 +05:30
parent 12e297d94d
commit 0d7ac632e3
19 changed files with 91 additions and 34 deletions

View File

@@ -44,7 +44,7 @@ export async function getAddonsChoice(
);
const response = await multiselect<ProjectAddons>({
message: "Which Addons would you like to add?",
message: "Select addons",
options,
initialValues,
required: false,

View File

@@ -24,7 +24,7 @@ export async function getAuthChoice(
if (auth !== undefined) return auth;
const response = await confirm({
message: "Would you like to add authentication with Better-Auth?",
message: "Add authentication with Better-Auth?",
initialValue: DEFAULT_CONFIG.auth,
});

View File

@@ -9,7 +9,7 @@ export async function getBackendFrameworkChoice(
if (backendFramework !== undefined) return backendFramework;
const response = await select<ProjectBackend>({
message: "Which backend framework would you like to use?",
message: "Select backend framework",
options: [
{
value: "hono",
@@ -19,7 +19,7 @@ export async function getBackendFrameworkChoice(
{
value: "elysia",
label: "Elysia",
hint: "TypeScript framework with end-to-end type safety)",
hint: "Ergonomic web framework for building backend servers",
},
],
initialValue: DEFAULT_CONFIG.backend,

View File

@@ -9,7 +9,7 @@ export async function getDatabaseChoice(
if (database !== undefined) return database;
const response = await select<ProjectDatabase>({
message: "Which database would you like to use?",
message: "Select database",
options: [
{
value: "none",

View File

@@ -25,7 +25,7 @@ export async function getExamplesChoice(
if (backend === "elysia") {
response = await multiselect<ProjectExamples>({
message: "Which examples would you like to include?",
message: "Include examples",
options: [
{
value: "todo",
@@ -40,7 +40,7 @@ export async function getExamplesChoice(
if (backend === "hono") {
response = await multiselect<ProjectExamples>({
message: "Which examples would you like to include?",
message: "Include examples",
options: [
{
value: "todo",

View File

@@ -9,7 +9,7 @@ export async function getFrontendChoice(
if (frontendOptions !== undefined) return frontendOptions;
const response = await multiselect<ProjectFrontend>({
message: "Which frontend applications would you like to create?",
message: "Choose frontends",
options: [
{
value: "web",

View File

@@ -6,7 +6,7 @@ export async function getGitChoice(git?: boolean): Promise<boolean> {
if (git !== undefined) return git;
const response = await confirm({
message: "Initialize a new git repository?",
message: "Initialize git repository?",
initialValue: DEFAULT_CONFIG.git,
});

View File

@@ -8,7 +8,7 @@ export async function getNoInstallChoice(
if (noInstall !== undefined) return noInstall;
const response = await confirm({
message: "Do you want to install project dependencies?",
message: "Install dependencies?",
initialValue: !DEFAULT_CONFIG.noInstall,
});

View File

@@ -11,7 +11,7 @@ export async function getORMChoice(
if (orm !== undefined) return orm;
const response = await select<ProjectOrm>({
message: "Which ORM would you like to use?",
message: "Select ORM",
options: [
{
value: "drizzle",

View File

@@ -11,7 +11,7 @@ export async function getPackageManagerChoice(
const detectedPackageManager = getUserPkgManager();
const response = await select<ProjectPackageManager>({
message: "Which package manager do you want to use?",
message: "Choose package manager",
options: [
{ value: "npm", label: "npm", hint: "Node Package Manager" },
{

View File

@@ -9,7 +9,7 @@ export async function getRuntimeChoice(
if (runtime !== undefined) return runtime;
const response = await select<ProjectRuntime>({
message: "Which runtime would you like to use?",
message: "Select runtime",
options: [
{
value: "bun",

View File

@@ -6,7 +6,7 @@ export async function getTursoSetupChoice(turso?: boolean): Promise<boolean> {
if (turso !== undefined) return turso;
const response = await confirm({
message: "Set up a Turso database for this project?",
message: "Set up Turso database?",
initialValue: DEFAULT_CONFIG.turso,
});