-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: account azure-oidc create (#296)
* feat: account azure-oidc list
- Loading branch information
1 parent
973c79e
commit 554d171
Showing
13 changed files
with
666 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package azure | ||
|
||
import ( | ||
"github.com/MakeNowJust/heredoc/v2" | ||
cmdCreate "github.com/OctopusDeploy/cli/pkg/cmd/account/azure-oidc/create" | ||
cmdList "github.com/OctopusDeploy/cli/pkg/cmd/account/azure-oidc/list" | ||
"github.com/OctopusDeploy/cli/pkg/constants" | ||
"github.com/OctopusDeploy/cli/pkg/factory" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
func NewCmdAzureOidc(f factory.Factory) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "azure-oidc <command>", | ||
Short: "Manage Azure OpenID Connect accounts", | ||
Long: "Manage Azure OpenID Connect accounts in Octopus Deploy", | ||
Example: heredoc.Docf("$ %s account azure-oidc list", constants.ExecutableName), | ||
} | ||
|
||
cmd.AddCommand(cmdList.NewCmdList(f)) | ||
cmd.AddCommand(cmdCreate.NewCmdCreate(f)) | ||
|
||
return cmd | ||
} |
Oops, something went wrong.