temporary command to test code snippet
This commit is contained in:
parent
e1410bf209
commit
71f345dff4
14
cmd/root.go
14
cmd/root.go
@ -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
|
||||
)
|
||||
@ -251,7 +249,14 @@ You can specify multiple datastores.`,
|
||||
ListDatastores(args, true)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user