File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export async function promptTemplate(ctx: Context) {
24
24
value : "sample-d1" ,
25
25
label : "D1 base template" ,
26
26
hint : "A barebones HONC project with a D1 Database" ,
27
- }
27
+ } ,
28
28
] ,
29
29
initialValue : "base" ,
30
30
} ) ;
@@ -42,10 +42,10 @@ export async function promptTemplate(ctx: Context) {
42
42
export async function promptOpenAPI ( ctx : Context ) {
43
43
const confirmOpenAPI = await confirm ( {
44
44
message : "Do you need an OpenAPI spec?" ,
45
- initialValue : false ,
45
+ initialValue : true ,
46
+ active : "Yes" ,
46
47
} ) ;
47
48
48
-
49
49
if ( typeof confirmOpenAPI === "boolean" && confirmOpenAPI ) {
50
50
ctx . useOpenAPI = confirmOpenAPI ;
51
51
}
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
import { promptPath } from "@/actions/path" ;
3
- import { actionTemplate , promptOpenAPI , promptTemplate } from "@/actions/template" ;
3
+ import {
4
+ actionTemplate ,
5
+ promptOpenAPI ,
6
+ promptTemplate ,
7
+ } from "@/actions/template" ;
4
8
import { intro , isCancel , outro } from "@clack/prompts" ;
5
9
import pico from "picocolors" ;
6
10
import { actionCodeGenFinish , actionCodeGenStart } from "./actions/code-gen" ;
@@ -130,6 +134,7 @@ function fiberplanePlaygroundPlug(context: Context) {
130
134
}
131
135
132
136
return `
133
- # [optional] Use Fiberplane to explore your api at "http://localhost:8787/fp"
137
+ # [optional] Use Fiberplane to explore your api
138
+ open http://localhost:8787/fp
134
139
` ;
135
140
}
You can’t perform that action at this time.
0 commit comments