mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 18:57:18 +08:00 
			
		
		
		
	 b886e8e449
			
		
	
	b886e8e449
	
	
	
		
			
			There are too many commands, for clarity they should be divided into categories when printing and generating documentation.
		
			
				
	
	
		
			27 lines
		
	
	
		
			585 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			585 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package terminal
 | |
| 
 | |
| type commandGroup uint8
 | |
| 
 | |
| const (
 | |
| 	otherCmds commandGroup = iota
 | |
| 	breakCmds
 | |
| 	runCmds
 | |
| 	dataCmds
 | |
| 	goroutineCmds
 | |
| 	stackCmds
 | |
| )
 | |
| 
 | |
| type commandGroupDescription struct {
 | |
| 	description string
 | |
| 	group       commandGroup
 | |
| }
 | |
| 
 | |
| var commandGroupDescriptions = []commandGroupDescription{
 | |
| 	{"Running the program", runCmds},
 | |
| 	{"Manipulating breakpoints", breakCmds},
 | |
| 	{"Viewing program variables and memory", dataCmds},
 | |
| 	{"Listing and switching between threads and goroutines", goroutineCmds},
 | |
| 	{"Viewing the call stack and selecting frames", stackCmds},
 | |
| 	{"Other commands", otherCmds},
 | |
| }
 |