feat: better error handling for sys kill signals

This commit is contained in:
Jagadam Dinesh Reddy authored and GitHub committed 2025-07-22 08:25:21 +02:00
1 parent 21ad653b7e
commit 1582b8b2cd
28 files changed
+876 -361

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ var rulesLsCommand = &cobra.Command{
Short: "List global rules or user specific rules",
Long: `List global rules or user specific rules.`,
Args: cobra.NoArgs,
Run: python(func(cmd *cobra.Command, _ []string, d pythonData) {
runRules(d.store, cmd, nil, nil)
RunE: python(func(cmd *cobra.Command, _ []string, d *pythonData) error {
return runRules(d.store, cmd, nil, nil)
}, pythonConfig{}),
}