Skip to content

Commit 25f03b4

Browse files
committed
Remove deprecated '--show-all' and '--hide-all' flags
In v0.13.0 flags `--show-all` and `--hide-all` have been deprecated. And they are completely being removed now (two releases after original announcement) Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent 258f460 commit 25f03b4

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

cmd/root.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ func NewCommand() *cobra.Command {
6969
cmd.PersistentFlags().BoolVar(&config.Sort.Enabled, "sort", true, "sort items")
7070
cmd.PersistentFlags().StringVar(&config.Sort.By, "sort-by", "name", "sort items by criteria ["+cli.SortTypes+"]")
7171

72-
// deprecated flags ==>
73-
cmd.PersistentFlags().BoolVar(new(bool), "show-all", true, "show all sections")
74-
cmd.PersistentFlags().BoolVar(new(bool), "hide-all", false, "hide all sections (default false)")
75-
cmd.PersistentFlags().MarkDeprecated("show-all", "more information: https://terraform-docs.io/user-guide/how-to/#visibility-of-sections\n\n") //nolint:errcheck,gosec
76-
cmd.PersistentFlags().MarkDeprecated("hide-all", "more information: https://terraform-docs.io/user-guide/how-to/#visibility-of-sections\n\n") //nolint:errcheck,gosec
77-
// <==
78-
7972
cmd.PersistentFlags().StringVar(&config.HeaderFrom, "header-from", "main.tf", "relative path of a file to read header from")
8073
cmd.PersistentFlags().StringVar(&config.FooterFrom, "footer-from", "", "relative path of a file to read footer from (default \"\")")
8174

docs/user-guide/configuration.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ sections:
6969
hide: []
7070
show: []
7171

72-
hide-all: false # deprecated in v0.13.0
73-
show-all: true # deprecated in v0.13.0
72+
hide-all: false # deprecated in v0.13.0, removed in v0.15.0
73+
show-all: true # deprecated in v0.13.0, removed in v0.15.0
7474

7575
content: ""
7676

@@ -111,7 +111,8 @@ settings:
111111
- `sections.show-all` and `sections.show`
112112

113113
**Note:** As of `v0.13.0`, `sections.hide-all` and `sections.show-all` are deprecated
114-
and removed in favor of explicit use of `sections.hide` and `sections.show`.
114+
in favor of explicit use of `sections.hide` and `sections.show`, and they are removed
115+
as of `v0.15.0`.
115116

116117
## Version
117118

@@ -193,7 +194,8 @@ The following options are supported and can be used for `sections.show` and
193194
- `resources` (since `v0.11.0`)
194195

195196
**Note:** As of `v0.13.0`, `sections.hide-all` and `sections.show-all` are deprecated
196-
and removed in favor of explicit use of `sections.hide` and `sections.show`.
197+
in favor of explicit use of `sections.hide` and `sections.show`, and they are removed
198+
as of `v0.15.0`.
197199

198200
## Content
199201

docs/user-guide/how-to.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ options:
6161

6262
- `--show <name>`
6363
- `--hide <name>`
64-
- `--show-all` (deprecated in `v0.13.0`)
65-
- `--hide-all` (deprecated in `v0.13.0`)
64+
- `--show-all` (deprecated in `v0.13.0`, removed in `v0.15.0`)
65+
- `--hide-all` (deprecated in `v0.13.0`, removed in `v0.15.0`)
6666

6767
As of `v0.13.0` flags `--show-all` and `--hide-all` are deprecated in favor of
6868
explicit use of `--show` and `--hide`. In other words when `--show <section>` is

0 commit comments

Comments
 (0)