chore(clustertool): move some talos and flux commands so subcommands

This commit is contained in:
Kjeld Schouten
2024-11-04 15:47:14 +01:00
parent 638b21f4a5
commit 0b19284dcb
8 changed files with 59 additions and 9 deletions
+25
View File
@@ -0,0 +1,25 @@
package cmd
import (
"strings"
"github.com/spf13/cobra"
)
var fluxLongHelp = strings.TrimSpace(`
These are all commands that can be used to maintain FluxCD
`)
var fluxCmd = &cobra.Command{
Use: "flux",
Short: "Commands for handling FluxCD",
Example: "clustertool flux bootstrap",
Long: advLongHelp,
SilenceUsage: true,
SilenceErrors: true,
}
func init() {
RootCmd.AddCommand(fluxCmd)
}