mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
add usage
This commit is contained in:
19
main.go
19
main.go
@@ -17,8 +17,23 @@ import (
|
||||
const version = ""
|
||||
const usage = `
|
||||
Usage:
|
||||
tf-docs <dir>
|
||||
tf-docs md <dir>
|
||||
tf-docs <dir>
|
||||
tf-docs md <dir>
|
||||
tf-docs -h | --help
|
||||
tf-docs -v | --version
|
||||
|
||||
Examples:
|
||||
|
||||
# Generate a JSON of inputs and outputs
|
||||
$ tf-docs ./my-module
|
||||
|
||||
# Generate markdown tables of inputs and outputs
|
||||
$ tf-docs md ./my-module
|
||||
|
||||
Options:
|
||||
-h, --help show help information
|
||||
-v, --version show version information
|
||||
|
||||
`
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user