Skip to content

Commit

Permalink
Destroy cmd (follow up)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpineau committed Mar 15, 2018
1 parent 1af6453 commit dadf8c0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cmd/destroy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package cmd

import (
"github.com/spf13/cobra"

"github.com/bpineau/cloud-floating-ip/pkg/operation"
"github.com/bpineau/cloud-floating-ip/pkg/run"
)

var destroyCmd = &cobra.Command{
Use: "destroy",
Short: "Delete the routes managed by cloud-floating-ip",
Long: `Delete the routes managed by cloud-floating-ip`,
Run: func(cmd *cobra.Command, args []string) {
run.Run(newCfiConfig(), operation.CfiDestroy)
},
}

func init() {
rootCmd.AddCommand(destroyCmd)
}

0 comments on commit dadf8c0

Please sign in to comment.