File tree Expand file tree Collapse file tree 5 files changed +23
-36
lines changed
Expand file tree Collapse file tree 5 files changed +23
-36
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 8
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-2d0de952cda743455598229e8f69c324bf65bbb908982b4fa3a36ff268b46a8d .yml
3- openapi_spec_hash : 8016de730b9c2c26513bf624cd30a828
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-55484eb3c5a4487f67eb0ddc6b416b47792ad78685be2f3f33f586a1995a97dd .yml
3+ openapi_spec_hash : 32dad4966e2c03ced3e9d8b90f6b6a3b
44config_hash : 1bee02a0eeb902e1ea32aa032bc70f54
Original file line number Diff line number Diff line change @@ -84,19 +84,6 @@ func createBuildsCreateSubcommand(initialBody []byte) Subcommand {
8484 },
8585 )
8686
87- flagSet .Func (
88- "parent-build-id" ,
89- "" ,
90- func (string string ) error {
91- var jsonErr error
92- body , jsonErr = jsonSet (body , "parent_build_id" , string )
93- if jsonErr != nil {
94- return jsonErr
95- }
96- return nil
97- },
98- )
99-
10087 flagSet .Func (
10188 "targets" ,
10289 "" ,
@@ -238,19 +225,6 @@ func createBuildsListSubcommand() Subcommand {
238225 },
239226 )
240227
241- flagSet .Func (
242- "config-hash" ,
243- "" ,
244- func (string string ) error {
245- var jsonErr error
246- query , jsonErr = jsonSet (query , "config_hash" , string )
247- if jsonErr != nil {
248- return jsonErr
249- }
250- return nil
251- },
252- )
253-
254228 flagSet .Func (
255229 "cursor" ,
256230 "" ,
@@ -282,11 +256,11 @@ func createBuildsListSubcommand() Subcommand {
282256 )
283257
284258 flagSet .Func (
285- "spec-hash " ,
259+ "revision " ,
286260 "" ,
287261 func (string string ) error {
288262 var jsonErr error
289- query , jsonErr = jsonSet (query , "spec_hash " , string )
263+ query , jsonErr = jsonSet (query , "revision " , string )
290264 if jsonErr != nil {
291265 return jsonErr
292266 }
Original file line number Diff line number Diff line change @@ -19,19 +19,19 @@ complete -c stainless-api-cli --no-files \
1919 -a " --project-name --display-name"
2020complete -c stainless-api-cli --no-files \
2121 -n " __fish_seen_subcommand_from projects.branches.create" \
22- -a " --project --branch --branch-from"
22+ -a " --project --branch --branch-from --force "
2323complete -c stainless-api-cli --no-files \
2424 -n " __fish_seen_subcommand_from projects.branches.retrieve" \
2525 -a " --project --branch"
2626complete -c stainless-api-cli --no-files \
2727 -n " __fish_seen_subcommand_from builds.create" \
28- -a " --project --revision --allow-empty --branch --commit-message --parent-build-id -- targets --+target"
28+ -a " --project --revision --allow-empty --branch --commit-message --targets --+target"
2929complete -c stainless-api-cli --no-files \
3030 -n " __fish_seen_subcommand_from builds.retrieve" \
3131 -a " --build-id"
3232complete -c stainless-api-cli --no-files \
3333 -n " __fish_seen_subcommand_from builds.list" \
34- -a " --project --branch --config-hash -- cursor --limit --spec-hash "
34+ -a " --project --branch --cursor --limit --revision "
3535complete -c stainless-api-cli --no-files \
3636 -n " __fish_seen_subcommand_from build_target_outputs.retrieve" \
3737 -a " --build-id --target --type --output"
Original file line number Diff line number Diff line change @@ -32,19 +32,19 @@ _main()
3232 flags=" --project-name --display-name"
3333 ;;
3434 projects.branches.create)
35- flags=" --project --branch --branch-from"
35+ flags=" --project --branch --branch-from --force "
3636 ;;
3737 projects.branches.retrieve)
3838 flags=" --project --branch"
3939 ;;
4040 builds.create)
41- flags=" --project --revision --allow-empty --branch --commit-message --parent-build-id -- targets --+target"
41+ flags=" --project --revision --allow-empty --branch --commit-message --targets --+target"
4242 ;;
4343 builds.retrieve)
4444 flags=" --build-id"
4545 ;;
4646 builds.list)
47- flags=" --project --branch --config-hash -- cursor --limit --spec-hash "
47+ flags=" --project --branch --cursor --limit --revision "
4848 ;;
4949 build_target_outputs.retrieve)
5050 flags=" --build-id --target --type --output"
Original file line number Diff line number Diff line change @@ -55,6 +55,19 @@ func createProjectsBranchesCreateSubcommand(initialBody []byte) Subcommand {
5555 },
5656 )
5757
58+ flagSet .BoolFunc (
59+ "force" ,
60+ "" ,
61+ func (_ string ) error {
62+ var jsonErr error
63+ body , jsonErr = jsonSet (body , "force" , true )
64+ if jsonErr != nil {
65+ return jsonErr
66+ }
67+ return nil
68+ },
69+ )
70+
5871 return Subcommand {
5972 flagSet : flagSet ,
6073 handle : func (client * stainlessv0.Client ) {
You can’t perform that action at this time.
0 commit comments