fluxcd-flux2/cmd/tk/delete.go
stefanprodan e5e06783bd Implement ks delete, suspend, resume commands
- add delete kustomization command with confirmation and warning id not suspended
- add suspend kustomization command
- add resume kustomization command
- add suspend/resume/delete e2e tests
2020-04-29 17:45:22 +03:00

21 lines
335 B
Go

package main
import (
"github.com/spf13/cobra"
)
var deleteCmd = &cobra.Command{
Use: "delete",
Short: "Delete commands",
}
var (
deleteSilent bool
)
func init() {
deleteCmd.PersistentFlags().BoolVarP(&deleteSilent, "silent", "", false,
"delete resource without asking for confirmation")
rootCmd.AddCommand(deleteCmd)
}