mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
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:
1 parent
e93a7c0d26
commit
44ad62e0b1
7 files changed
+270
-64
No files matched your search
+6
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user