Skip to content

Commit b9b5882

Browse files
stainless-app[bot]yjp20
authored andcommitted
feat(api): docs
1 parent 7ac4c43 commit b9b5882

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-e588492ce099ac1af79467a22ecac606b1fe8cf78a82fd37137bf8e30ac1a80e.yml
3-
openapi_spec_hash: 7311d0d71ab64604d2b298e3c38b945f
4-
config_hash: b4d273d7503424c98b7d284102d23fb1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-a015455f60c6b613608a0a1fc4918a41593038160a16b09f714f601ab98c84bf.yml
3+
openapi_spec_hash: 6f4ebb173c63d77efa9addde9b11f69e
4+
config_hash: 50a257a9f90f8a010873c283e2832095

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ stl [resource] [command] [flags]
4545

4646
```sh
4747
stl builds create \
48-
--project project \
49-
--revision string
48+
--project stainless \
49+
--revision main
5050
```
5151

5252
For details about specific commands, use the `--help` flag.

pkg/cmd/build.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func waitForBuildCompletion(ctx context.Context, client stainless.Client, build
225225

226226
var buildsCreate = cli.Command{
227227
Name: "create",
228-
Usage: "Create a new build",
228+
Usage: "Create a build, on top of a project branch, against a given input revision.",
229229
Flags: []cli.Flag{
230230
&jsonflag.JSONStringFlag{
231231
Name: "project",
@@ -310,7 +310,7 @@ var buildsCreate = cli.Command{
310310

311311
var buildsRetrieve = cli.Command{
312312
Name: "retrieve",
313-
Usage: "Retrieve a build by ID",
313+
Usage: "Retrieve a build by its ID.",
314314
Flags: []cli.Flag{
315315
&cli.StringFlag{
316316
Name: "build-id",
@@ -322,7 +322,7 @@ var buildsRetrieve = cli.Command{
322322

323323
var buildsList = cli.Command{
324324
Name: "list",
325-
Usage: "List builds for a project",
325+
Usage: "List user-triggered builds for a given project.",
326326
Flags: []cli.Flag{
327327
&jsonflag.JSONStringFlag{
328328
Name: "project",
@@ -366,7 +366,7 @@ var buildsList = cli.Command{
366366

367367
var buildsCompare = cli.Command{
368368
Name: "compare",
369-
Usage: "Creates two builds whose outputs can be compared directly",
369+
Usage: "Create two builds whose outputs can be directly compared with each other.",
370370
Flags: []cli.Flag{
371371
&jsonflag.JSONStringFlag{
372372
Name: "base.branch",

pkg/cmd/builddiagnostic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var buildsDiagnosticsList = cli.Command{
1515
Name: "list",
16-
Usage: "Get diagnostics for a build",
16+
Usage: "Get the list of diagnostics for a given build.",
1717
Flags: []cli.Flag{
1818
&cli.StringFlag{
1919
Name: "build-id",

pkg/cmd/buildtargetoutput.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
var buildsTargetOutputsRetrieve = cli.Command{
1616
Name: "retrieve",
17-
Usage: "Download the output of a build target",
17+
Usage: "Retrieve a method to download an output for a given build target.",
1818
Flags: []cli.Flag{
1919
&cli.BoolFlag{
2020
Name: "pull",

pkg/cmd/org.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
var orgsRetrieve = cli.Command{
1313
Name: "retrieve",
14-
Usage: "Retrieve an organization by name",
14+
Usage: "Retrieve an organization by name.",
1515
Flags: []cli.Flag{
1616
&cli.StringFlag{
1717
Name: "org",
@@ -23,7 +23,7 @@ var orgsRetrieve = cli.Command{
2323

2424
var orgsList = cli.Command{
2525
Name: "list",
26-
Usage: "List organizations the user has access to",
26+
Usage: "List organizations accessible to the current authentication method.",
2727
Flags: []cli.Flag{},
2828
Action: handleOrgsList,
2929
HideHelpCommand: true,

pkg/cmd/project.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var projectsCreate = cli.Command{
1515
Name: "create",
16-
Usage: "Create a new project",
16+
Usage: "Create a new project.",
1717
Flags: []cli.Flag{
1818
&jsonflag.JSONStringFlag{
1919
Name: "display-name",
@@ -57,7 +57,7 @@ var projectsCreate = cli.Command{
5757

5858
var projectsRetrieve = cli.Command{
5959
Name: "retrieve",
60-
Usage: "Retrieve a project by name",
60+
Usage: "Retrieve a project by name.",
6161
Flags: []cli.Flag{
6262
&cli.StringFlag{
6363
Name: "project",
@@ -69,7 +69,7 @@ var projectsRetrieve = cli.Command{
6969

7070
var projectsUpdate = cli.Command{
7171
Name: "update",
72-
Usage: "Update a project's properties",
72+
Usage: "Update a project's properties.",
7373
Flags: []cli.Flag{
7474
&cli.StringFlag{
7575
Name: "project",
@@ -88,7 +88,7 @@ var projectsUpdate = cli.Command{
8888

8989
var projectsList = cli.Command{
9090
Name: "list",
91-
Usage: "List projects in an organization, from oldest to newest",
91+
Usage: "List projects in an organization, from oldest to newest.",
9292
Flags: []cli.Flag{
9393
&jsonflag.JSONStringFlag{
9494
Name: "cursor",

pkg/cmd/projectbranch.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var projectsBranchesCreate = cli.Command{
1515
Name: "create",
16-
Usage: "Create a new branch for a project",
16+
Usage: "Create a new branch for a project.",
1717
Flags: []cli.Flag{
1818
&cli.StringFlag{
1919
Name: "project",
@@ -47,7 +47,7 @@ var projectsBranchesCreate = cli.Command{
4747

4848
var projectsBranchesRetrieve = cli.Command{
4949
Name: "retrieve",
50-
Usage: "Retrieve a project branch",
50+
Usage: "Retrieve a project branch by name.",
5151
Flags: []cli.Flag{
5252
&cli.StringFlag{
5353
Name: "project",
@@ -62,7 +62,7 @@ var projectsBranchesRetrieve = cli.Command{
6262

6363
var projectsBranchesList = cli.Command{
6464
Name: "list",
65-
Usage: "List project branches",
65+
Usage: "Retrieve a project branch by name.",
6666
Flags: []cli.Flag{
6767
&cli.StringFlag{
6868
Name: "project",
@@ -88,7 +88,7 @@ var projectsBranchesList = cli.Command{
8888

8989
var projectsBranchesDelete = cli.Command{
9090
Name: "delete",
91-
Usage: "Delete a project branch",
91+
Usage: "Delete a project branch by name.",
9292
Flags: []cli.Flag{
9393
&cli.StringFlag{
9494
Name: "project",
@@ -103,7 +103,7 @@ var projectsBranchesDelete = cli.Command{
103103

104104
var projectsBranchesRebase = cli.Command{
105105
Name: "rebase",
106-
Usage: "Rebase a project branch",
106+
Usage: "Rebase a project branch.",
107107
Flags: []cli.Flag{
108108
&cli.StringFlag{
109109
Name: "project",

pkg/cmd/projectconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
var projectsConfigsRetrieve = cli.Command{
1515
Name: "retrieve",
16-
Usage: "Retrieve configuration files for a project",
16+
Usage: "Retrieve the configuration files for a given project.",
1717
Flags: []cli.Flag{
1818
&cli.StringFlag{
1919
Name: "project",
@@ -39,7 +39,7 @@ var projectsConfigsRetrieve = cli.Command{
3939

4040
var projectsConfigsGuess = cli.Command{
4141
Name: "guess",
42-
Usage: "Generate configuration suggestions based on an OpenAPI spec",
42+
Usage: "Generate suggestions for changes to config files based on an OpenAPI spec.",
4343
Flags: []cli.Flag{
4444
&cli.StringFlag{
4545
Name: "project",

0 commit comments

Comments
 (0)