temporary command to test code snippet

This commit is contained in:
yo 2022-06-18 20:09:32 +02:00
parent e1410bf209
commit 71f345dff4

View File

@ -17,8 +17,6 @@ import (
const (
gVersion = "0.27d"
DEVFS_DEFAULT_RULESET = 4
// TODO : Get from $jail_zpool/defaults.json
MIN_DYN_DEVFS_RULESET = 1000
)
@ -252,6 +250,13 @@ You can specify multiple datastores.`,
},
}
testCmd = &cobra.Command{
Use: "test",
Short: "temporary command to test some code snippet",
Run: func(cmd *cobra.Command, args []string) {
addDevfsRuleToRuleset("path bpf* unhide", 1999)
},
}
)
// TODO : Init log level and log output
@ -305,6 +310,9 @@ func init() {
rootCmd.AddCommand(snapshotCmd)
rootCmd.AddCommand(migrateCmd)
rootCmd.AddCommand(datastoreCmd)
rootCmd.AddCommand(testCmd)
snapshotCmd.AddCommand(snapshotListCmd)
snapshotCmd.AddCommand(snapshotCreateCmd)
snapshotCmd.AddCommand(snapshotDeleteCmd)