docs: Deprecate accepting files as commands param (#163)

BREAKING CHANGE: - With Terraform 0.12 ability to generate
output from file has been deprecated in favor of from folder
which contains one or more `.tf` files.
This commit is contained in:
Khosrow Moossavi
2020-01-15 18:57:33 -05:00
committed by GitHub
parent 61fc16c101
commit 1dd45537d3
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import (
var jsonCmd = &cobra.Command{
Args: cobra.ExactArgs(1),
Use: "json [PATH...]",
Use: "json [PATH]",
Short: "Generate a JSON of inputs and outputs",
Run: func(cmd *cobra.Command, args []string) {
doPrint(args, func(module *tfconf.Module) (string, error) {

View File

@@ -9,7 +9,7 @@ import (
var markdownCmd = &cobra.Command{
Args: cobra.ExactArgs(1),
Use: "markdown [PATH...]",
Use: "markdown [PATH]",
Aliases: []string{"md"},
Short: "Generate Markdown of inputs and outputs",
Run: func(cmd *cobra.Command, args []string) {
@@ -21,7 +21,7 @@ var markdownCmd = &cobra.Command{
var mdTableCmd = &cobra.Command{
Args: cobra.ExactArgs(1),
Use: "table [PATH...]",
Use: "table [PATH]",
Aliases: []string{"tbl"},
Short: "Generate Markdown tables of inputs and outputs",
Run: func(cmd *cobra.Command, args []string) {
@@ -33,7 +33,7 @@ var mdTableCmd = &cobra.Command{
var mdDocumentCmd = &cobra.Command{
Args: cobra.ExactArgs(1),
Use: "document [PATH...]",
Use: "document [PATH]",
Aliases: []string{"doc"},
Short: "Generate Markdown document of inputs and outputs",
Run: func(cmd *cobra.Command, args []string) {

View File

@@ -8,7 +8,7 @@ import (
var prettyCmd = &cobra.Command{
Args: cobra.ExactArgs(1),
Use: "pretty [PATH...]",
Use: "pretty [PATH]",
Short: "Generate a colorized pretty of inputs and outputs",
Run: func(cmd *cobra.Command, args []string) {
doPrint(args, func(module *tfconf.Module) (string, error) {