fix pre-commit and cleanup
This commit is contained in:
+11
-11
@@ -1,21 +1,21 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/truecharts/public/clustertool/pkg/sops"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/truecharts/public/clustertool/pkg/sops"
|
||||
)
|
||||
|
||||
var encrypt = &cobra.Command{
|
||||
Use: "encrypt",
|
||||
Short: "Encrypt all high-risk data using sops",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if err := sops.EncryptAllFiles(); err != nil {
|
||||
log.Info().Msgf("Error encrypting files: %v\n", err)
|
||||
}
|
||||
},
|
||||
Use: "encrypt",
|
||||
Short: "Encrypt all high-risk data using sops",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if err := sops.EncryptAllFiles(); err != nil {
|
||||
log.Info().Msgf("Error encrypting files: %v\n", err)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
RootCmd.AddCommand(encrypt)
|
||||
RootCmd.AddCommand(encrypt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user