From 08c73c40b980dae87e3f9319da73a84e9c3c0e17 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 21 Jun 2023 13:22:22 -0400 Subject: [PATCH] Update Cobra URLs for recent change (#368) Signed-off-by: Marc Khouzam --- docs/plugindev/README.md | 2 +- docs/plugindev/style_guide.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plugindev/README.md b/docs/plugindev/README.md index 120ee0d21..515a3b768 100644 --- a/docs/plugindev/README.md +++ b/docs/plugindev/README.md @@ -347,7 +347,7 @@ also provide shell completion for its arguments and flag values; these are referred to as "custom completions". Please refer to the Cobra project's documentation on -[Customizing completions](https://github.com/spf13/cobra/blob/main/shell_completions.md#customizing-completions) +[Customizing completions](https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md#customizing-completions) to learn how to make your plugin more user-friendly using shell completion. ### Configuration file diff --git a/docs/plugindev/style_guide.md b/docs/plugindev/style_guide.md index 9ec7bbd7d..20be118d5 100644 --- a/docs/plugindev/style_guide.md +++ b/docs/plugindev/style_guide.md @@ -140,7 +140,7 @@ tanzu cluster create CLUSTER-NAME [flags] * A user should only be required to explicitly set a max of 2 flags * Add as many flags as necessary to configure the command * Consider supporting the use of a config file if the number of flags exceeds 5 -* Flags should be tab completed. The Tanzu CLI uses the cobra framework, which has tooling to help with this [Cobra shell completion docs](https://github.com/spf13/cobra/blob/master/shell_completions.md) +* Flags should be tab completed. The Tanzu CLI uses the cobra framework, which has tooling to help with this [Cobra shell completion docs](https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md) #### Resource flags