Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensions Management Commands #4409

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
13 changes: 7 additions & 6 deletions cli/azd/cmd/actions/action_descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,17 @@ type ActionHelpOptions struct {
type RootLevelHelpOption string

const (
CmdGroupNone RootLevelHelpOption = ""
CmdGroupConfig RootLevelHelpOption = "Configure and develop your app"
CmdGroupManage RootLevelHelpOption = "Manage Azure resources and app deployments"
CmdGroupMonitor RootLevelHelpOption = "Monitor, test and release your app"
CmdGroupAbout RootLevelHelpOption = "About, help and upgrade"
CmdGroupNone RootLevelHelpOption = ""
CmdGroupConfig RootLevelHelpOption = "Configure and develop your app"
CmdGroupManage RootLevelHelpOption = "Manage Azure resources and app deployments"
CmdGroupMonitor RootLevelHelpOption = "Monitor, test and release your app"
CmdGroupAbout RootLevelHelpOption = "About, help and upgrade"
CmdGroupExtensions RootLevelHelpOption = "Installed Extensions"
)

func GetGroupAnnotations() []RootLevelHelpOption {
return []RootLevelHelpOption{
CmdGroupConfig, CmdGroupManage, CmdGroupMonitor, CmdGroupAbout,
CmdGroupConfig, CmdGroupManage, CmdGroupMonitor, CmdGroupExtensions, CmdGroupAbout,
}
}

Expand Down
4 changes: 4 additions & 0 deletions cli/azd/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
"github.com/azure/azure-dev/cli/azd/pkg/environment"
"github.com/azure/azure-dev/cli/azd/pkg/environment/azdcontext"
"github.com/azure/azure-dev/cli/azd/pkg/exec"
"github.com/azure/azure-dev/cli/azd/pkg/extensions"
"github.com/azure/azure-dev/cli/azd/pkg/helm"
"github.com/azure/azure-dev/cli/azd/pkg/httputil"
"github.com/azure/azure-dev/cli/azd/pkg/infra"
Expand Down Expand Up @@ -787,6 +788,9 @@ func registerCommonDependencies(container *ioc.NestedContainer) {
})
container.MustRegisterSingleton(workflow.NewRunner)

// Extensions
container.MustRegisterSingleton(extensions.NewManager)

// Required for nested actions called from composite actions like 'up'
registerAction[*cmd.ProvisionAction](container, "azd-provision-action")
registerAction[*downAction](container, "azd-down-action")
Expand Down
Loading
Loading