fix pre-commit and cleanup

This commit is contained in:
Kjeld Schouten
2024-10-19 15:18:05 +02:00
parent 2acb59c9dc
commit 4ab41d42f2
203 changed files with 8456 additions and 8484 deletions
+13 -13
View File
@@ -1,11 +1,11 @@
package cmd
import (
"strings"
"strings"
"github.com/spf13/cobra"
"github.com/truecharts/public/clustertool/pkg/initfiles"
"github.com/truecharts/public/clustertool/pkg/sops"
"github.com/spf13/cobra"
"github.com/truecharts/public/clustertool/pkg/initfiles"
"github.com/truecharts/public/clustertool/pkg/sops"
)
var initLongHelp = strings.TrimSpace(`
@@ -21,18 +21,18 @@ Powered by TalHelper (https://budimanjojo.github.io/talhelper/)
`)
var initFiles = &cobra.Command{
Use: "init",
Short: "generate Basic ClusterTool file-and-folder structure in current folder",
Long: initLongHelp,
Example: "clustertool init",
Run: func(cmd *cobra.Command, args []string) {
Use: "init",
Short: "generate Basic ClusterTool file-and-folder structure in current folder",
Long: initLongHelp,
Example: "clustertool init",
Run: func(cmd *cobra.Command, args []string) {
sops.DecryptFiles()
sops.DecryptFiles()
initfiles.InitFiles()
},
initfiles.InitFiles()
},
}
func init() {
RootCmd.AddCommand(initFiles)
RootCmd.AddCommand(initFiles)
}