From 8036eac8dc7b23ef30af5597c2a8b4de2bd56409 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 14 Aug 2022 16:11:56 -0800 Subject: [PATCH] add tags and boost for pages --- docs/v1/examples/arguments.md | 5 ++++- docs/v1/examples/bash-completions.md | 5 +++++ docs/v1/examples/combining-short-options.md | 5 +++++ docs/v1/examples/exit-codes.md | 5 +++++ docs/v1/examples/flags.md | 5 +++++ docs/v1/examples/generated-help-text.md | 5 +++++ docs/v1/examples/greet.md | 5 +++++ docs/v1/examples/subcommands-categories.md | 5 +++++ docs/v1/examples/subcommands.md | 5 +++++ docs/v1/examples/version-flag.md | 5 ++++- docs/v1/getting-started.md | 5 +++++ docs/v1/migrating-to-v2.md | 5 ++++- docs/v2/examples/arguments.md | 7 +++++++ docs/v2/examples/bash-completions.md | 7 +++++++ docs/v2/examples/combining-short-options.md | 7 +++++++ docs/v2/examples/exit-codes.md | 7 +++++++ docs/v2/examples/flags.md | 7 +++++++ docs/v2/examples/full-api-example.md | 7 +++++++ docs/v2/examples/generated-help-text.md | 7 +++++++ docs/v2/examples/greet.md | 7 +++++++ docs/v2/examples/subcommands-categories.md | 7 +++++++ docs/v2/examples/subcommands.md | 7 +++++++ docs/v2/examples/suggestions.md | 7 +++++++ docs/v2/examples/timestamp-flag.md | 7 +++++++ docs/v2/examples/version-flag.md | 7 +++++++ docs/v2/getting-started.md | 7 +++++++ docs/v2/migrating-from-older-releases.md | 7 +++++++ 27 files changed, 162 insertions(+), 3 deletions(-) diff --git a/docs/v1/examples/arguments.md b/docs/v1/examples/arguments.md index ba451b6..4416d32 100644 --- a/docs/v1/examples/arguments.md +++ b/docs/v1/examples/arguments.md @@ -1,4 +1,7 @@ -### Arguments +--- +tags: + - v1 +--- You can lookup arguments by calling the `Args` function on `cli.Context`, e.g.: diff --git a/docs/v1/examples/bash-completions.md b/docs/v1/examples/bash-completions.md index 5648477..73af176 100644 --- a/docs/v1/examples/bash-completions.md +++ b/docs/v1/examples/bash-completions.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + You can enable completion commands by setting the `EnableBashCompletion` flag on the `App` object. By default, this setting will only auto-complete to show an app's subcommands, but you can write your own completion methods for diff --git a/docs/v1/examples/combining-short-options.md b/docs/v1/examples/combining-short-options.md index 3ab6ebd..0496300 100644 --- a/docs/v1/examples/combining-short-options.md +++ b/docs/v1/examples/combining-short-options.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + Traditional use of options using their shortnames look like this: ``` diff --git a/docs/v1/examples/exit-codes.md b/docs/v1/examples/exit-codes.md index 39c0642..1d6627d 100644 --- a/docs/v1/examples/exit-codes.md +++ b/docs/v1/examples/exit-codes.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + Calling `App.Run` will not automatically call `os.Exit`, which means that by default the exit code will "fall through" to being `0`. An explicit exit code may be set by returning a non-nil error that fulfills `cli.ExitCoder`, *or* a diff --git a/docs/v1/examples/flags.md b/docs/v1/examples/flags.md index f6ae7be..2f9300b 100644 --- a/docs/v1/examples/flags.md +++ b/docs/v1/examples/flags.md @@ -1,3 +1,8 @@ +--- +tags: + - v1 +--- + Setting and querying flags is simple.