@@ -22,11 +22,11 @@ import (
2222// targetInfo holds information about a build target
2323type targetInfo struct {
2424 name string
25- status stainlessv0 .BuildTargetStatus
25+ status stainless .BuildTargetStatus
2626}
2727
2828// getCompletedTargets extracts completed targets from a build response
29- func getCompletedTargets (buildRes stainlessv0 .BuildObject ) []targetInfo {
29+ func getCompletedTargets (buildRes stainless .BuildObject ) []targetInfo {
3030 targets := []targetInfo {}
3131
3232 // Check each target and add it to the list if it's completed or in postgen
@@ -89,7 +89,7 @@ func getCompletedTargets(buildRes stainlessv0.BuildObject) []targetInfo {
8989}
9090
9191// isTargetCompleted checks if a target is in a completed state
92- func isTargetCompleted (status stainlessv0 .BuildTargetStatus ) bool {
92+ func isTargetCompleted (status stainless .BuildTargetStatus ) bool {
9393 return status == "completed" || status == "postgen"
9494}
9595
@@ -418,7 +418,7 @@ func handleBuildsRetrieve(ctx context.Context, cmd *cli.Command) error {
418418}
419419
420420// pullBuildOutputs pulls the outputs for a completed build
421- func pullBuildOutputs (ctx context.Context , client stainlessv0 .Client , res stainlessv0 .BuildObject ) error {
421+ func pullBuildOutputs (ctx context.Context , client stainless .Client , res stainless .BuildObject ) error {
422422 // Get all targets
423423 allTargets := getCompletedTargets (res )
424424
@@ -443,9 +443,9 @@ func pullBuildOutputs(ctx context.Context, client stainlessv0.Client, res stainl
443443 // Get the output details
444444 outputRes , err := client .Builds .TargetOutputs .Get (
445445 ctx ,
446- stainlessv0 .BuildTargetOutputGetParams {
446+ stainless .BuildTargetOutputGetParams {
447447 BuildID : res .ID ,
448- Target : stainlessv0 .BuildTargetOutputGetParamsTarget (target ),
448+ Target : stainless .BuildTargetOutputGetParamsTarget (target ),
449449 Type : "source" ,
450450 Output : "git" ,
451451 },
0 commit comments