chore(clustertool): prep for more longer description texts

This commit is contained in:
Kjeld Schouten
2024-10-25 18:14:20 +02:00
parent 203b451127
commit e09a48e770
23 changed files with 175 additions and 40 deletions
+6
View File
@@ -2,15 +2,21 @@ package cmd
import (
"os"
"strings"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/truecharts/public/clustertool/pkg/sops"
)
var advPrecommitLongHelp = strings.TrimSpace(`
`)
var precommit = &cobra.Command{
Use: "precommit",
Short: "Runs the PreCommit encryption check",
Long: advPrecommitLongHelp,
Run: func(cmd *cobra.Command, args []string) {
if err := sops.CheckFilesAndReportEncryption(true, true); err != nil {
log.Info().Msgf("Error checking files: %v\n", err)