Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.23.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AINotValid = "is not valid according to the validation procedure"
)

Variables

View Source
var NonPersistentGlobalFlags = []string{"help", "docs"}

NonPersistentGlobalFlags are flags that appear on all commands but are generated per-command rather than being defined as persistent flags on the root command.

Functions

func AzurePortalLink(portalUrlBase, subscriptionId, resourceGroupName string) string

func GetCmdDeployHelpDescription

func GetCmdDeployHelpDescription(*cobra.Command) string

func GetCmdDeployHelpFooter

func GetCmdDeployHelpFooter(*cobra.Command) string

func GetCmdProvisionHelpDescription

func GetCmdProvisionHelpDescription(c *cobra.Command) string

func GetCmdPublishHelpDescription

func GetCmdPublishHelpDescription(*cobra.Command) string

func GetCmdPublishHelpFooter

func GetCmdPublishHelpFooter(*cobra.Command) string

func MapError

func MapError(err error, span tracing.Span)

MapError maps the given error to a telemetry span, setting relevant status and attributes.

func NewDeployAction

func NewDeployAction(
	flags *DeployFlags,
	args []string,
	projectConfig *project.ProjectConfig,
	projectManager project.ProjectManager,
	serviceManager project.ServiceManager,
	resourceManager project.ResourceManager,
	azdCtx *azdcontext.AzdContext,
	environment *environment.Environment,
	envManager environment.Manager,
	accountManager account.Manager,
	cloud *cloud.Cloud,
	azCli *azapi.AzureClient,
	commandRunner exec.CommandRunner,
	console input.Console,
	formatter output.Formatter,
	writer io.Writer,
	alphaFeatureManager *alpha.FeatureManager,
	importManager *project.ImportManager,
) actions.Action

func NewDeployCmd

func NewDeployCmd() *cobra.Command

func NewProvisionAction

func NewProvisionAction(
	args []string,
	flags *ProvisionFlags,
	provisionManager *provisioning.Manager,
	projectManager project.ProjectManager,
	importManager *project.ImportManager,
	resourceManager project.ResourceManager,
	projectConfig *project.ProjectConfig,
	env *environment.Environment,
	envManager environment.Manager,
	console input.Console,
	commandRunner exec.CommandRunner,
	serviceLocator ioc.ServiceLocator,
	formatter output.Formatter,
	writer io.Writer,
	subManager *account.SubscriptionsManager,
	alphaFeatureManager *alpha.FeatureManager,
	cloud *cloud.Cloud,
) actions.Action

func NewProvisionCmd

func NewProvisionCmd() *cobra.Command

func NewPublishAction

func NewPublishAction(
	flags *PublishFlags,
	args []string,
	projectConfig *project.ProjectConfig,
	projectManager project.ProjectManager,
	serviceManager project.ServiceManager,
	resourceManager project.ResourceManager,
	azdCtx *azdcontext.AzdContext,
	environment *environment.Environment,
	accountManager account.Manager,
	cloud *cloud.Cloud,
	azCli *azapi.AzureClient,
	commandRunner exec.CommandRunner,
	console input.Console,
	formatter output.Formatter,
	writer io.Writer,
	alphaFeatureManager *alpha.FeatureManager,
	importManager *project.ImportManager,
	serviceLocator ioc.ServiceLocator,
) actions.Action

func NewPublishCmd

func NewPublishCmd() *cobra.Command

Types

type DeployAction

type DeployAction struct {
	// contains filtered or unexported fields
}

func (*DeployAction) Run

type DeployFlags

type DeployFlags struct {
	ServiceName string
	All         bool
	Timeout     int

	*internal.EnvFlag
	// contains filtered or unexported fields
}

func NewDeployFlags

func NewDeployFlags(cmd *cobra.Command, global *internal.GlobalCommandOptions) *DeployFlags

func NewDeployFlagsFromEnvAndOptions

func NewDeployFlagsFromEnvAndOptions(envFlag *internal.EnvFlag, global *internal.GlobalCommandOptions) *DeployFlags

func (*DeployFlags) Bind

func (d *DeployFlags) Bind(local *pflag.FlagSet, global *internal.GlobalCommandOptions)

func (*DeployFlags) BindNonCommon

func (d *DeployFlags) BindNonCommon(
	local *pflag.FlagSet,
	global *internal.GlobalCommandOptions)

func (*DeployFlags) SetCommon

func (d *DeployFlags) SetCommon(envFlag *internal.EnvFlag)

type DeploymentResult

type DeploymentResult struct {
	Timestamp time.Time                               `json:"timestamp"`
	Services  map[string]*project.ServiceDeployResult `json:"services"`
}

type ProvisionAction

type ProvisionAction struct {
	// contains filtered or unexported fields
}

func (*ProvisionAction) Run

func (*ProvisionAction) SetFlags

func (p *ProvisionAction) SetFlags(flags *ProvisionFlags)

SetFlags sets the flags for the provision action. Panics if `flags` is nil

type ProvisionFlags

type ProvisionFlags struct {
	*internal.EnvFlag
	// contains filtered or unexported fields
}

func NewProvisionFlags

func NewProvisionFlags(cmd *cobra.Command, global *internal.GlobalCommandOptions) *ProvisionFlags

func NewProvisionFlagsFromEnvAndOptions

func NewProvisionFlagsFromEnvAndOptions(envFlag *internal.EnvFlag, global *internal.GlobalCommandOptions) *ProvisionFlags

func (*ProvisionFlags) Bind

func (i *ProvisionFlags) Bind(local *pflag.FlagSet, global *internal.GlobalCommandOptions)

func (*ProvisionFlags) BindNonCommon

func (i *ProvisionFlags) BindNonCommon(local *pflag.FlagSet, global *internal.GlobalCommandOptions)

func (*ProvisionFlags) Location

func (i *ProvisionFlags) Location() string

Location returns the value of the --location flag.

func (*ProvisionFlags) SetCommon

func (i *ProvisionFlags) SetCommon(envFlag *internal.EnvFlag)

func (*ProvisionFlags) Subscription

func (i *ProvisionFlags) Subscription() string

Subscription returns the value of the --subscription flag.

type PublishAction

type PublishAction struct {
	// contains filtered or unexported fields
}

func (*PublishAction) Run

type PublishFlags

type PublishFlags struct {
	ServiceName string
	All         bool
	To          string
	FromPackage string

	*internal.EnvFlag
	// contains filtered or unexported fields
}

func NewPublishFlags

func NewPublishFlags(cmd *cobra.Command, global *internal.GlobalCommandOptions) *PublishFlags

func (*PublishFlags) Bind

func (f *PublishFlags) Bind(local *pflag.FlagSet, global *internal.GlobalCommandOptions)

type PublishResult

type PublishResult struct {
	Timestamp time.Time                                `json:"timestamp"`
	Services  map[string]*project.ServicePublishResult `json:"services"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL