Hides the '--schema-comments' flag in the root 'steampipe' command. Closes #2010

This commit is contained in:
Binaek Sarkar
2022-05-06 18:11:19 +05:30
committed by GitHub
parent d3160ed45a
commit c5ced36a48
3 changed files with 8 additions and 2 deletions

View File

@@ -101,6 +101,14 @@ func InitCmd() {
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.Flags().BoolP(constants.ArgHelp, "h", false, "Help for steampipe")
rootCmd.Flags().BoolP(constants.ArgVersion, "v", false, "Version for steampipe")
hideRootFlags(constants.ArgSchemaComments)
}
func hideRootFlags(flags ...string) {
for _, flag := range flags {
rootCmd.Flag(flag).Hidden = true
}
}
// initConfig reads in config file and ENV variables if set.

View File

@@ -33,7 +33,6 @@ Global Flags:
--cloud-host string Steampipe Cloud host (default "cloud.steampipe.io")
--cloud-token string Steampipe Cloud authentication token
--install-dir string Path to the Config Directory (defaults to ~/.steampipe) (default "~/.steampipe")
--schema-comments Include schema comments when importing connection schemas (default true)
--workspace string Path to the workspace working directory (DEPRECATED: please use workspace-chdir)
--workspace-chdir string Path to the workspace working directory
--workspace-database string Steampipe Cloud workspace database (default "local")

View File

@@ -19,7 +19,6 @@ Global Flags:
--cloud-host string Steampipe Cloud host (default "cloud.steampipe.io")
--cloud-token string Steampipe Cloud authentication token
--install-dir string Path to the Config Directory (defaults to ~/.steampipe) (default "~/.steampipe")
--schema-comments Include schema comments when importing connection schemas (default true)
--workspace string Path to the workspace working directory (DEPRECATED: please use workspace-chdir)
--workspace-chdir string Path to the workspace working directory
--workspace-database string Steampipe Cloud workspace database (default "local")