Library to generate documents for urfave-cli.
This library would be helpful when generating Markdown documents for the command-line interfaces built using https://cli.urfave.org.
Get latest version of urfavecli-docgen using go get
command. Example:
go get github.com/nikhilsbhat/urfavecli-docgen@latest
Get specific version of the same. Example:
go get github.com/nikhilsbhat/urfavecli-docgen@v0.0.2
package main
import (
"fmt"
"log"
"github.com/nikhilsbhat/urfavecli-docgen"
)
func main() {
appCli := cli.App{}
if err := docgen.GenerateDocs(&appCli); err != nil {
log.Fatalln(err)
}
}
More examples can be found here.