temporary command to test code snippet
This commit is contained in:
parent
e1410bf209
commit
71f345dff4
12
cmd/root.go
12
cmd/root.go
@ -17,8 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
gVersion = "0.27d"
|
gVersion = "0.27d"
|
||||||
|
|
||||||
DEVFS_DEFAULT_RULESET = 4
|
|
||||||
|
|
||||||
// TODO : Get from $jail_zpool/defaults.json
|
// TODO : Get from $jail_zpool/defaults.json
|
||||||
MIN_DYN_DEVFS_RULESET = 1000
|
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
|
// TODO : Init log level and log output
|
||||||
@ -305,6 +310,9 @@ func init() {
|
|||||||
rootCmd.AddCommand(snapshotCmd)
|
rootCmd.AddCommand(snapshotCmd)
|
||||||
rootCmd.AddCommand(migrateCmd)
|
rootCmd.AddCommand(migrateCmd)
|
||||||
rootCmd.AddCommand(datastoreCmd)
|
rootCmd.AddCommand(datastoreCmd)
|
||||||
|
|
||||||
|
rootCmd.AddCommand(testCmd)
|
||||||
|
|
||||||
snapshotCmd.AddCommand(snapshotListCmd)
|
snapshotCmd.AddCommand(snapshotListCmd)
|
||||||
snapshotCmd.AddCommand(snapshotCreateCmd)
|
snapshotCmd.AddCommand(snapshotCreateCmd)
|
||||||
snapshotCmd.AddCommand(snapshotDeleteCmd)
|
snapshotCmd.AddCommand(snapshotDeleteCmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user