mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user