delve/_scripts/gen-cli-docs.go
Derek Parker 85c34e47ee *: mv scripts _scripts
Instead of selectively excluding this directory, hide it from the go
tooling by applying the "_" prefix.
2020-03-28 20:28:51 +01:00

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)
}