diff --git a/cmd/root.go b/cmd/root.go index fa34dce..219bb30 100644 --- a/cmd/root.go +++ b/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)