Skip to content

Commit b1131e6

Browse files
committed
feat: change --project-name flag to --project in workspace init command
1 parent 5de284a commit b1131e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ The CLI supports workspace configuration to avoid repeatedly specifying the proj
4444
You can initialize a workspace configuration with:
4545

4646
```sh
47-
stainless-api-cli init --project-name your-project-name
47+
stl init --project your-project-name
4848
```
4949

50-
If you don't provide the `--project-name` flag, you'll be prompted to enter a project name.
50+
If you don't provide the `--project` flag, you'll be prompted to enter a project name.
5151

5252
Additionally, when you run a command with a project name flag in an interactive terminal, the CLI will offer to initialize a workspace configuration for you.

pkg/cmd/workspace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var initWorkspaceCommand = cli.Command{
2525
Usage: "Initialize stainless workspace configuration in current directory",
2626
Flags: []cli.Flag{
2727
&cli.StringFlag{
28-
Name: "project-name",
28+
Name: "project",
2929
Usage: "Project name to use for this workspace",
3030
},
3131
},
@@ -71,7 +71,7 @@ func handleInitWorkspace(ctx context.Context, cmd *cli.Command) error {
7171
theme.Focused.Title = theme.Focused.Title.Bold(true)
7272

7373
// Get project name from flag or prepare for interactive prompt
74-
projectName := cmd.String("project-name")
74+
projectName := cmd.String("project")
7575
var openAPISpec, stainlessConfig string
7676

7777
// If project name wasn't provided via flag, prompt for all fields interactively

0 commit comments

Comments
 (0)