Skip to content

grafana/clireadme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

clireadme

A small library that helps to update the documentation in the README file of cobra-based CLI tools.

Usage

Create a tools/gendoc/main.go file with the following content (the Main function must be called with your own cobra Command as a parameter).

Then run: go run ./tools/gendoc README.md

// Package main contains CLI documentation generator tool.
package main

import (
	"github.com/grafana/clireadme"
	"github.com/grafana/k6tb/cmd"
)

func main() {
	clireadme.Main(cmd.New())
}

About

Update the CLI documentation in the readme file

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages