You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("You must provide a stainless configuration file with `--config /path/to/stainless.yml` or run this command from an initialized workspace.")
283
-
}
284
-
285
-
stainlessConfig, err:=os.ReadFile(configPath)
286
-
iferr!=nil {
287
-
returnnil, fmt.Errorf("Could not read your stainless configuration file:\n%w", err)
returnnil, fmt.Errorf("You must provide an OpenAPI specification with `--oas /path/to/openapi.json` or run this command from an initialized workspace.")
296
-
}
297
-
298
-
openAPISpec, err:=os.ReadFile(oasPath)
299
-
iferr!=nil {
300
-
returnnil, fmt.Errorf("Could not read your stainless configuration file:\n%w", err)
returnnil, fmt.Errorf("You must provide a stainless configuration file with `--config /path/to/stainless.yml` or run this command from an initialized workspace.")
190
+
}
191
+
192
+
stainlessConfig, err:=os.ReadFile(configPath)
193
+
iferr!=nil {
194
+
returnnil, fmt.Errorf("Could not read your stainless configuration file:\n%w", err)
returnnil, fmt.Errorf("You must provide an OpenAPI specification with `--oas /path/to/openapi.json` or run this command from an initialized workspace.")
203
+
}
204
+
205
+
openAPISpec, err:=os.ReadFile(oasPath)
206
+
iferr!=nil {
207
+
returnnil, fmt.Errorf("Could not read your stainless configuration file:\n%w", err)
0 commit comments