Skip to content

Commit ff8ae91

Browse files
stainless-app[bot]yjp20
authored andcommitted
feat(api): add a way to fetch specific files via /v0/build_target_outputs
1 parent 62fc628 commit ff8ae91

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-3ce8fd0a863c4628a23f31a6e9f759769091f728b700205e176c300ecb407da3.yml
3-
openapi_spec_hash: 7c4683ffaf22fd287e45835d8b4ff860
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-ef33241ec003fafbf4f2ffe434c3d8c2ac0ba929137942185663ff59974d2138.yml
3+
openapi_spec_hash: 87bd0d9c684517522cbbbd48bbe8ad83
44
config_hash: 4b44da9496c775d2294758cd233f4ecd

pkg/cmd/buildtargetoutput.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ var buildsTargetOutputsRetrieve = cli.Command{
5656
HideDefault: true,
5757
QueryPath: "output",
5858
},
59+
&requestflag.Flag[string]{
60+
Name: "path",
61+
Usage: `The path of the file to get when used with "type": "file".`,
62+
QueryPath: "path",
63+
},
5964
},
6065
Before: before,
6166
Action: handleBuildsTargetOutputsRetrieve,

pkg/cmd/buildtargetoutput_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func TestBuildsTargetOutputsRetrieve(t *testing.T) {
1717
"--target", "node",
1818
"--type", "source",
1919
"--output", "url",
20+
"--path", "path",
2021
)
2122
})
2223
}

0 commit comments

Comments
 (0)