From fe3c48827fa083585a4cae4eb5ff19d6b06d49f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Thu, 21 Dec 2023 10:35:43 +0100 Subject: [PATCH] chore: always show aliases --- docs/_data/bearer.yaml | 1 + docs/_data/bearer_completion.yaml | 1 + docs/_data/bearer_ignore_add.yaml | 1 + docs/_data/bearer_ignore_migrate.yaml | 1 + docs/_data/bearer_ignore_pull.yaml | 1 + docs/_data/bearer_ignore_remove.yaml | 1 + docs/_data/bearer_ignore_show.yaml | 1 + docs/_data/bearer_init.yaml | 1 + docs/_data/bearer_version.yaml | 1 + scripts/gen-doc-yaml.go | 2 +- 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/_data/bearer.yaml b/docs/_data/bearer.yaml index 079ccb7e6..5beb9f170 100644 --- a/docs/_data/bearer.yaml +++ b/docs/_data/bearer.yaml @@ -10,3 +10,4 @@ see_also: - bearer init - Generates a default config to `bearer.yml` - bearer scan - Scan a directory or file - bearer version - Print the version +aliases: [] diff --git a/docs/_data/bearer_completion.yaml b/docs/_data/bearer_completion.yaml index 30de193b9..03f426bb8 100644 --- a/docs/_data/bearer_completion.yaml +++ b/docs/_data/bearer_completion.yaml @@ -8,3 +8,4 @@ options: usage: help for completion see_also: - "bearer - " +aliases: [] diff --git a/docs/_data/bearer_ignore_add.yaml b/docs/_data/bearer_ignore_add.yaml index 2c55c3f6e..2c6857643 100644 --- a/docs/_data/bearer_ignore_add.yaml +++ b/docs/_data/bearer_ignore_add.yaml @@ -65,3 +65,4 @@ example: |- $ bearer ignore add --author Mish --comment "Possible false positive" see_also: - bearer ignore - Manage ignored fingerprints +aliases: [] diff --git a/docs/_data/bearer_ignore_migrate.yaml b/docs/_data/bearer_ignore_migrate.yaml index f44f1fcd6..7200c563d 100644 --- a/docs/_data/bearer_ignore_migrate.yaml +++ b/docs/_data/bearer_ignore_migrate.yaml @@ -50,3 +50,4 @@ example: |- $ bearer ignore migrate see_also: - bearer ignore - Manage ignored fingerprints +aliases: [] diff --git a/docs/_data/bearer_ignore_pull.yaml b/docs/_data/bearer_ignore_pull.yaml index b3475430d..1b26c5f81 100644 --- a/docs/_data/bearer_ignore_pull.yaml +++ b/docs/_data/bearer_ignore_pull.yaml @@ -45,3 +45,4 @@ example: |- $ bearer ignore pull /path/to/your_project --api-key=XXXXX see_also: - bearer ignore - Manage ignored fingerprints +aliases: [] diff --git a/docs/_data/bearer_ignore_remove.yaml b/docs/_data/bearer_ignore_remove.yaml index fbffc2ad4..573a8d017 100644 --- a/docs/_data/bearer_ignore_remove.yaml +++ b/docs/_data/bearer_ignore_remove.yaml @@ -45,3 +45,4 @@ example: |- $ bearer ignore remove see_also: - bearer ignore - Manage ignored fingerprints +aliases: [] diff --git a/docs/_data/bearer_ignore_show.yaml b/docs/_data/bearer_ignore_show.yaml index f27e0fe1f..b309a3b23 100644 --- a/docs/_data/bearer_ignore_show.yaml +++ b/docs/_data/bearer_ignore_show.yaml @@ -50,3 +50,4 @@ example: |- $ bearer ignore show see_also: - bearer ignore - Manage ignored fingerprints +aliases: [] diff --git a/docs/_data/bearer_init.yaml b/docs/_data/bearer_init.yaml index 02ff253d6..8cbfc17c1 100644 --- a/docs/_data/bearer_init.yaml +++ b/docs/_data/bearer_init.yaml @@ -8,3 +8,4 @@ options: usage: help for init see_also: - "bearer - " +aliases: [] diff --git a/docs/_data/bearer_version.yaml b/docs/_data/bearer_version.yaml index c1d2574d4..94086d8d3 100644 --- a/docs/_data/bearer_version.yaml +++ b/docs/_data/bearer_version.yaml @@ -42,3 +42,4 @@ options: - BEARER_NO_COLOR see_also: - "bearer - " +aliases: [] diff --git a/scripts/gen-doc-yaml.go b/scripts/gen-doc-yaml.go index 6b5be06ab..ea611fe14 100644 --- a/scripts/gen-doc-yaml.go +++ b/scripts/gen-doc-yaml.go @@ -37,7 +37,7 @@ type cmdDoc struct { InheritedOptions []cmdOption `yaml:"inherited_options,omitempty"` Example string `yaml:",omitempty"` SeeAlso []string `yaml:"see_also,omitempty"` - Aliases []string `yaml:"aliases,omitempty"` + Aliases []string `yaml:"aliases"` } var (