From 9d3dd5aacc917f9b6c7c32d34d5eb67e03325a56 Mon Sep 17 00:00:00 2001 From: Yik San Chan Date: Thu, 27 Jan 2022 10:09:14 +0800 Subject: [PATCH] feat: hide docgen command --- oomcli/cmd/docgen.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oomcli/cmd/docgen.go b/oomcli/cmd/docgen.go index 1a00db273..6995be789 100644 --- a/oomcli/cmd/docgen.go +++ b/oomcli/cmd/docgen.go @@ -20,6 +20,9 @@ var docgenCmd = &cobra.Command{ func init() { // So that it doesn't docgen 'completion' command rootCmd.CompletionOptions.DisableDefaultCmd = true + // Hide the command for non-dev users + docgenCmd.Hidden = true + rootCmd.AddCommand(docgenCmd) }