Skip to content

Commit

Permalink
switch from sdk.SDK to sdk.HathoraCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
jranson committed Jan 13, 2025
1 parent faef811 commit ee47a85
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 460 deletions.
4 changes: 2 additions & 2 deletions internal/commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var Build = &cli.Command{
},
}

func doBuildCreate(ctx context.Context, hathora *sdk.SDK, buildTag, buildId, filePath string, hideUploadProgress bool) (*components.BuildV3, error) {
func doBuildCreate(ctx context.Context, hathora *sdk.HathoraCloud, buildTag, buildId, filePath string, hideUploadProgress bool) (*components.BuildV3, error) {
file, err := archive.RequireTGZ(filePath)
if err != nil {
return nil, fmt.Errorf("no build file available for run: %w", err)
Expand Down Expand Up @@ -305,7 +305,7 @@ var (

type BuildConfig struct {
*GlobalConfig
SDK *sdk.SDK
SDK *sdk.HathoraCloud
Output output.FormatWriter
}

Expand Down
2 changes: 1 addition & 1 deletion internal/commands/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ var (

type DeploymentConfig struct {
*GlobalConfig
SDK *sdk.SDK
SDK *sdk.HathoraCloud
Output output.FormatWriter
}

Expand Down
2 changes: 1 addition & 1 deletion internal/commands/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var (

type LogConfig struct {
*GlobalConfig
SDK *sdk.SDK
SDK *sdk.HathoraCloud
}

var _ LoadableConfig = (*LogConfig)(nil)
Expand Down
2 changes: 1 addition & 1 deletion internal/mock/hathora.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

type HathoraIntegration struct {
Endpoint string
SDK *sdk.SDK
SDK *sdk.HathoraCloud

mock *mockHathora
}
Expand Down
Loading

0 comments on commit ee47a85

Please sign in to comment.