feat(clustertool): actually fully block genconfig unless first init is finished

This commit is contained in:
Kjeld Schouten
2024-11-06 10:37:16 +01:00
parent d707b498ab
commit 269a895ab1
4 changed files with 44 additions and 5 deletions
-5
View File
@@ -3,10 +3,8 @@ package cmd
import (
"strings"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/truecharts/public/clustertool/pkg/gencmd"
"github.com/truecharts/public/clustertool/pkg/sops"
)
var genConfigLongHelp = strings.TrimSpace(`
@@ -24,9 +22,6 @@ var genConfig = &cobra.Command{
Long: genConfigLongHelp,
Example: "clustertool genconfig",
Run: func(cmd *cobra.Command, args []string) {
if err := sops.DecryptFiles(); err != nil {
log.Info().Msgf("Error decrypting files: %v\n", err)
}
gencmd.GenConfig(args)
},