Skip to content

Commit ee8b94d

Browse files
committed
feat(dev): require project parameter
1 parent a4d78c6 commit ee8b94d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/cmd/dev.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ func gitRepoRoot(dir string) string {
164164

165165
func runDevBuild(ctx context.Context, client stainless.Client, wc workspace.Config, cmd *cli.Command) error {
166166
projectName := cmd.String("project")
167+
if projectName == "" {
168+
return fmt.Errorf("project is required: use --project or set it in .stainless/workspace.json")
169+
}
167170
oasPath := cmd.String("openapi-spec")
168171
configPath := cmd.String("stainless-config")
169172

0 commit comments

Comments
 (0)