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

cmd

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Populated at build time
	Version   = "dev" // Default value for development builds
	Commit    = "none"
	BuildDate = "unknown"
)

Functions

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

type DotNetTemplate

type DotNetTemplate struct {
	Namespace string
	ExeName   string
}

type ExtensionTemplate

type ExtensionTemplate struct {
	Metadata *models.ExtensionSchema
	// SanitizedId is the extension ID with dots replaced by dashes for CI file names.
	SanitizedId string
	// HasCustomCommands controls documentation for commands exposed through azd.
	HasCustomCommands bool
	// HasLifecycleEvents controls documentation for the hidden lifecycle event host.
	HasLifecycleEvents bool
	// LeafNamespace is the final dot-separated segment of Metadata.Namespace, used as the
	// cobra Use/Name for the extension's root command. For nested namespaces like
	// "ai.agents", users invoke the extension via "azd ai agents" (azd splits on '.'),
	// so the extension's own root command name is the leaf ("agents").
	LeafNamespace string
	DotNet        *DotNetTemplate
}

ExtensionTemplate contains values used when rendering extension project templates.

Jump to

Keyboard shortcuts

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