diff --git a/cmd/root.go b/cmd/root.go index c683eb4..3f7f1b6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -69,13 +69,6 @@ func NewCommand() *cobra.Command { cmd.PersistentFlags().BoolVar(&config.Sort.Enabled, "sort", true, "sort items") cmd.PersistentFlags().StringVar(&config.Sort.By, "sort-by", "name", "sort items by criteria ["+cli.SortTypes+"]") - // deprecated flags ==> - cmd.PersistentFlags().BoolVar(new(bool), "show-all", true, "show all sections") - cmd.PersistentFlags().BoolVar(new(bool), "hide-all", false, "hide all sections (default false)") - cmd.PersistentFlags().MarkDeprecated("show-all", "more information: https://terraform-docs.io/user-guide/how-to/#visibility-of-sections\n\n") //nolint:errcheck,gosec - cmd.PersistentFlags().MarkDeprecated("hide-all", "more information: https://terraform-docs.io/user-guide/how-to/#visibility-of-sections\n\n") //nolint:errcheck,gosec - // <== - cmd.PersistentFlags().StringVar(&config.HeaderFrom, "header-from", "main.tf", "relative path of a file to read header from") cmd.PersistentFlags().StringVar(&config.FooterFrom, "footer-from", "", "relative path of a file to read footer from (default \"\")") diff --git a/docs/user-guide/configuration.md b/docs/user-guide/configuration.md index 5514d5b..a0d4955 100644 --- a/docs/user-guide/configuration.md +++ b/docs/user-guide/configuration.md @@ -69,8 +69,8 @@ sections: hide: [] show: [] - hide-all: false # deprecated in v0.13.0 - show-all: true # deprecated in v0.13.0 + hide-all: false # deprecated in v0.13.0, removed in v0.15.0 + show-all: true # deprecated in v0.13.0, removed in v0.15.0 content: "" @@ -111,7 +111,8 @@ settings: - `sections.show-all` and `sections.show` **Note:** As of `v0.13.0`, `sections.hide-all` and `sections.show-all` are deprecated -and removed in favor of explicit use of `sections.hide` and `sections.show`. +in favor of explicit use of `sections.hide` and `sections.show`, and they are removed +as of `v0.15.0`. ## Version @@ -193,7 +194,8 @@ The following options are supported and can be used for `sections.show` and - `resources` (since `v0.11.0`) **Note:** As of `v0.13.0`, `sections.hide-all` and `sections.show-all` are deprecated -and removed in favor of explicit use of `sections.hide` and `sections.show`. +in favor of explicit use of `sections.hide` and `sections.show`, and they are removed +as of `v0.15.0`. ## Content diff --git a/docs/user-guide/how-to.md b/docs/user-guide/how-to.md index dd2ea75..2367978 100644 --- a/docs/user-guide/how-to.md +++ b/docs/user-guide/how-to.md @@ -61,8 +61,8 @@ options: - `--show ` - `--hide ` -- `--show-all` (deprecated in `v0.13.0`) -- `--hide-all` (deprecated in `v0.13.0`) +- `--show-all` (deprecated in `v0.13.0`, removed in `v0.15.0`) +- `--hide-all` (deprecated in `v0.13.0`, removed in `v0.15.0`) As of `v0.13.0` flags `--show-all` and `--hide-all` are deprecated in favor of explicit use of `--show` and `--hide`. In other words when `--show
` is