temporary command to test code snippet
This commit is contained in:
		
							
								
								
									
										12
									
								
								cmd/root.go
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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
 | 
			
		||||
)
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user