Skip to content

Commit bb69895

Browse files
committed
fix: change stainlessv0 import to stainless
1 parent af63fcf commit bb69895

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

pkg/cmd/build.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import (
2222
// targetInfo holds information about a build target
2323
type 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
},

pkg/cmd/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func handleProjectsList(ctx context.Context, cmd *cli.Command) error {
402402
}
403403

404404
// fetchUserOrgs retrieves the list of organizations the user has access to
405-
func fetchUserOrgs(client stainlessv0.Client, ctx context.Context) []string {
405+
func fetchUserOrgs(client stainless.Client, ctx context.Context) []string {
406406
res, err := client.Orgs.List(ctx)
407407
if err != nil {
408408
// Return empty slice if we can't fetch orgs

pkg/cmd/workspace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ type projectInfo struct {
138138

139139
// fetchUserProjects retrieves the list of projects the user has access to
140140
func fetchUserProjects(ctx context.Context) map[string]projectInfo {
141-
client := stainlessv0.NewClient(getClientOptions()...)
142-
params := stainlessv0.ProjectListParams{}
141+
client := stainless.NewClient(getClientOptions()...)
142+
params := stainless.ProjectListParams{}
143143

144144
res, err := client.Projects.List(ctx, params)
145145
if err != nil {

0 commit comments

Comments
 (0)