chore(clustertool): move some talos and flux commands so subcommands
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user