cmd

package
v1.37.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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