Documentation ¶
Index ¶
Constants ¶
View Source
const TelemetryCommandFlag = "telemetry"
View Source
const TelemetryUploadCommandFlag = "upload"
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
func NewRootCmd( staticHelp bool, middlewareChain []*actions.MiddlewareRegistration, rootContainer *ioc.NestedContainer, ) *cobra.Command
Creates the root Cobra command for AZD. staticHelp - False, except for running for doc generation middlewareChain - nil, except for running unit tests rootContainer - The IoC container to use for registering and resolving dependencies. If nil is provided, a new container empty will be created.
Types ¶
type ArmClientInitializer ¶
type ArmClientInitializer[T comparable] func( subscriptionId string, credentials azcore.TokenCredential, armClientOptions *arm.ClientOptions, ) (T, error)
ArmClientInitializer is a function definition for all Azure SDK ARM Client
type BuildResult ¶
type BuildResult struct { Timestamp time.Time `json:"timestamp"` Services map[string]*project.ServiceBuildResult `json:"services"` }
type CobraBuilder ¶
type CobraBuilder struct {
// contains filtered or unexported fields
}
CobraBuilder manages the construction of the cobra command tree from nested ActionDescriptors
func NewCobraBuilder ¶
func NewCobraBuilder(container *ioc.NestedContainer) *CobraBuilder
Creates a new instance of the Cobra builder
func (*CobraBuilder) BuildCommand ¶
func (cb *CobraBuilder) BuildCommand(descriptor *actions.ActionDescriptor) (*cobra.Command, error)
Builds a cobra Command for the specified action descriptor
type CredentialProviderFn ¶
type CredentialProviderFn func(context.Context, *auth.CredentialForCurrentUserOptions) (azcore.TokenCredential, error)
type PackageResult ¶
type PackageResult struct { Timestamp time.Time `json:"timestamp"` Services map[string]*project.ServicePackageResult `json:"services"` }
type RestoreResult ¶
type RestoreResult struct { Timestamp time.Time `json:"timestamp"` Services map[string]*project.ServiceRestoreResult `json:"services"` }
Source Files ¶
- auth.go
- auth_login.go
- auth_logout.go
- auth_token.go
- build.go
- cmd_help.go
- cobra_builder.go
- config.go
- container.go
- deps.go
- down.go
- env.go
- hooks.go
- infra.go
- infra_create.go
- infra_delete.go
- infra_synth.go
- init.go
- monitor.go
- package.go
- pipeline.go
- restore.go
- root.go
- show.go
- telemetry.go
- templates.go
- up.go
- util.go
- version.go
- vs_server.go
Directories ¶
Path | Synopsis |
---|---|
Package actions contains the application logic that handles azd CLI commands.
|
Package actions contains the application logic that handles azd CLI commands. |
Click to show internal directories.
Click to hide internal directories.