mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 01:07:27 +00:00
- 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
21 lines
335 B
Go
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)
|
|
}
|