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

WIP: Extensions POC #4409

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.log
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