mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 18:57:18 +08:00 
			
		
		
		
	 2bd1cd3fa7
			
		
	
	2bd1cd3fa7
	
	
	
		
			
			* scripts: use relative path in gen-cli-docs.go Makes gen-cli-docs.go work outside GOPATH. * Documentation,cmd/dlv: tidy up --help output The description of --log-dest, --log-output and --backend is very verbose and messes up the output of --help, move it to two "additional help" subcommands.
		
			
				
	
	
		
			26 lines
		
	
	
		
			397 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			397 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build ignore
 | |
| 
 | |
| package main
 | |
| 
 | |
| import (
 | |
| 	"bufio"
 | |
| 	"log"
 | |
| 	"os"
 | |
| 
 | |
| 	"github.com/go-delve/delve/pkg/terminal"
 | |
| )
 | |
| 
 | |
| func main() {
 | |
| 	fh, err := os.Create(os.ExpandEnv("./Documentation/cli/README.md"))
 | |
| 	if err != nil {
 | |
| 		log.Fatalf("could not create README.md: %v", err)
 | |
| 	}
 | |
| 	defer fh.Close()
 | |
| 
 | |
| 	w := bufio.NewWriter(fh)
 | |
| 	defer w.Flush()
 | |
| 
 | |
| 	commands := terminal.DebugCommands(nil)
 | |
| 	commands.WriteMarkdown(w)
 | |
| }
 |