mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
* Add support for TOML renderer * Add kind:formatter to toml command * update docs * adjust tests after merge * fix after merge * adjust tests after merge * update docs * remove vendor leftovers * update doc * update tests
18 lines
312 B
Go
18 lines
312 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var tomlCmd = &cobra.Command{
|
|
Args: cobra.ExactArgs(1),
|
|
Use: "toml [PATH]",
|
|
Short: "Generate TOML of inputs and outputs",
|
|
Annotations: formatAnnotations("toml"),
|
|
RunE: formatRunE,
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(tomlCmd)
|
|
}
|