feat: wrap commands to send info (#612)
Wrap commands in a better way to pass storage
This commit is contained in:
1 parent
f396602084
commit
01ff03e426
16 files changed
+170
-212
No files matched your search
+3
-3
@@ -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: func(cmd *cobra.Command, args []string) {
|
||||
runRules(cmd, nil, nil)
|
||||
},
|
||||
Run: python(func(cmd *cobra.Command, args []string, d pythonData) {
|
||||
runRules(d.store, cmd, nil, nil)
|
||||
}, pythonConfig{}),
|
||||
}
|
||||
Reference in new issue
Block a user