mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
feat: Add support for TOML renderer (#197)
* 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
This commit is contained in:
17
cmd/toml.go
Normal file
17
cmd/toml.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user