Skip to content

Commit

Permalink
docs: Deprecate accepting files as commands param (#163)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
khos2ow committed Jan 15, 2020
1 parent 61fc16c commit 1dd4553
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1dd4553

Please sign in to comment.