Skip to content

Commit f6efb74

Browse files
committed
feat: make openapi path relative
1 parent 5574498 commit f6efb74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cmd/workspace.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ func handleWorkspaceInit(ctx context.Context, cmd *cli.Command) error {
107107
huh.NewInput().
108108
Title("openapi_spec (optional)").
109109
Description("Relative path to your OpenAPI spec file").
110-
Placeholder("openapi.yml").
110+
Placeholder("./openapi.yml").
111111
Value(&openAPISpec),
112112
huh.NewInput().
113113
Title("stainless_config (optional)").
114114
Description("Relative path to your Stainless config file").
115-
Placeholder("openapi.stainless.yml").
115+
Placeholder("./openapi.stainless.yml").
116116
Value(&stainlessConfig),
117117
),
118118
).WithTheme(GetFormTheme(0)).WithKeyMap(GetFormKeyMap())
@@ -261,7 +261,7 @@ func findOpenAPISpec() string {
261261

262262
for _, filename := range commonOpenAPIFiles {
263263
if _, err := os.Stat(filename); err == nil {
264-
return filename
264+
return "./" + filename
265265
}
266266
}
267267
return ""
@@ -278,7 +278,7 @@ func findStainlessConfig() string {
278278

279279
for _, filename := range commonStainlessFiles {
280280
if _, err := os.Stat(filename); err == nil {
281-
return filename
281+
return "./" + filename
282282
}
283283
}
284284
return ""

0 commit comments

Comments
 (0)