Skip to content

Commit

Permalink
feat: create azure web app target
Browse files Browse the repository at this point in the history
Co-authored-by: John Bristowe <john.bristowe@octopus.com>
  • Loading branch information
benPearce1 and jbristowe authored Nov 15, 2022
1 parent 672fd7f commit 20d66b3
Show file tree
Hide file tree
Showing 7 changed files with 551 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/AlecAivazis/survey/v2 v2.3.5
github.com/MakeNowJust/heredoc/v2 v2.0.1
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.14.0
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.15.0
github.com/briandowns/spinner v1.19.0
github.com/google/uuid v1.3.0
github.com/hashicorp/go-multierror v1.1.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63n
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.14.0 h1:BMFtEXFvzp+m942qRBfautdPE4V+jzWBFLSB2ShTDGc=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.14.0/go.mod h1:2j9rwRfb5qUs9PEJ3W331W84kRaNge5bed4D7JR1ruU=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.15.0 h1:8R5q30r9oGJKclKbXDZdWHjyZdosYjqKQsiSaK6E9L8=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.15.0/go.mod h1:2j9rwRfb5qUs9PEJ3W331W84kRaNge5bed4D7JR1ruU=
github.com/briandowns/spinner v1.19.0 h1:s8aq38H+Qju89yhp89b4iIiMzMm8YN3p6vGpwyh/a8E=
github.com/briandowns/spinner v1.19.0/go.mod h1:mQak9GHqbspjC/5iUx3qMlIho8xBS/ppAL/hX5SmPJU=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
Expand Down
22 changes: 22 additions & 0 deletions pkg/cmd/target/azure-web-app/azure-web-app.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package azure_web_app

import (
"fmt"
cmdCreate "github.com/OctopusDeploy/cli/pkg/cmd/target/azure-web-app/create"
"github.com/OctopusDeploy/cli/pkg/constants"
"github.com/OctopusDeploy/cli/pkg/factory"
"github.com/spf13/cobra"
)

func NewCmdAzureWebApp(f factory.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "azure-web-app <command>",
Short: "Manage Azure Web App deployment targets",
Long: "Work with Azure Web App deployment targets in Octopus Deploy.",
Example: fmt.Sprintf("$ %s deployment-target azure-web-app list", constants.ExecutableName),
}

//cmd.AddCommand(cmdList.NewCmdList(f))
cmd.AddCommand(cmdCreate.NewCmdCreate(f))
return cmd
}
Loading

0 comments on commit 20d66b3

Please sign in to comment.