Skip to content

Commit

Permalink
remove required config.yaml file for the check/print of rules
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <issif+github@gadz.org>
  • Loading branch information
Issif authored and poiana committed Oct 16, 2024
1 parent d7e2ead commit 29baf91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func init() {
actionnersCmd.AddCommand(actionnersListCmd)
outputsCmd.AddCommand(outputsListCmd)
notifiersCmd.AddCommand(notifiersListCmd)
RootCmd.PersistentFlags().StringP("config", "c", "/etc/falco-talon/config.yaml", "Falco Talon Config File")
RootCmd.PersistentFlags().StringArrayP("rules", "r", []string{"/etc/falco-talon/rules.yaml"}, "Falco Talon Rules File")
RootCmd.PersistentFlags().StringArrayP("rules", "r", []string{}, "Falco Talon Rules File")
serverCmd.Flags().StringP("config", "c", "/etc/falco-talon/config.yaml", "Falco Talon Config File")
rulesCmd.PersistentFlags().StringP("config", "c", "", "Falco Talon Config File")
actionnersCmd.PersistentFlags().StringP("config", "c", "", "Falco Talon Config File")
outputsCmd.PersistentFlags().StringP("config", "c", "", "Falco Talon Config File")
notifiersCmd.PersistentFlags().StringP("config", "c", "", "Falco Talon Config File")
}

0 comments on commit 29baf91

Please sign in to comment.