Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmd/cloud/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
astrocore "github.com/astronomer/astro-cli/astro-client-core"
astroiamcore "github.com/astronomer/astro-cli/astro-client-iam-core"
astroplatformcore "github.com/astronomer/astro-cli/astro-client-platform-core"
"github.com/astronomer/astro-cli/config"
"github.com/spf13/cobra"
)

Expand All @@ -23,13 +24,16 @@ func AddCmds(astroPlatformCoreClient astroplatformcore.CoreClient, coreClient as
platformCoreClient = astroPlatformCoreClient
astroCoreIamClient = iamCoreClient
airflowAPIClient = airflowClient
return []*cobra.Command{
cmds := []*cobra.Command{
NewDeployCmd(),
newDeploymentRootCmd(out),
newWorkspaceCmd(out),
newOrganizationCmd(out),
newDbtCmd(),
newIDECommand(out),
newRemoteRootCmd(),
}
if config.CFG.RemoteCmd.GetBool() {
cmds = append(cmds, newRemoteRootCmd())
}
return cmds
}
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ var (
RuffImage: newCfg("ruff.image", "ghcr.io/astral-sh/ruff:latest"),
RemoteClientRegistry: newCfg("remote.client_registry", ""),
RemoteBaseImageRegistry: newCfg("remote.base_image_registry", "images.astronomer.cloud"),
RemoteCmd: newCfg("beta.remote_cmd", "false"),
}

// viperHome is the viper object in the users home directory
Expand Down
1 change: 1 addition & 0 deletions config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type cfgs struct {
RuffImage cfg
RemoteClientRegistry cfg
RemoteBaseImageRegistry cfg
RemoteCmd cfg
}

// Creates a new cfg struct
Expand Down