cmd

package
v0.0.0-...-64c5dde Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 98 Imported by: 0

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 Asker

type Asker func(p survey.Prompt, response interface{}) error

type BuildResult

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

type CmdAnnotations

type CmdAnnotations map[string]string

CmdAnnotations on a command

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 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"`
}

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.

Jump to

Keyboard shortcuts

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