fix pre-commit and cleanup
This commit is contained in:
+13
-13
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user