Deprecate detect and protect. Add git, dir, stdin (#1504)

* init backwards compatible cmd

* update readme, todos

* ...

* moar comments, sprucing up root

* readme change
This commit is contained in:
Zachary Rice authored and GitHub committed 2024-09-13 19:44:22 -05:00
1 parent e93a7c0d26
commit 44ad62e0b1
7 files changed
+270 -64

No files matched your search

+6 -3
View File
@@ -12,13 +12,16 @@ import (
func init() {
protectCmd.Flags().Bool("staged", false, "detect secrets in a --staged state")
protectCmd.Flags().String("log-opts", "", "git log options")
protectCmd.Flags().StringP("source", "s", ".", "path to source")
rootCmd.AddCommand(protectCmd)
}
var protectCmd = &cobra.Command{
Use: "protect",
Short: "protect secrets in code",
Run: runProtect,
Use: "protect",
Short: "protect secrets in code",
Run: runProtect,
Hidden: true,
}
func runProtect(cmd *cobra.Command, args []string) {