mirror of
https://github.com/turbot/steampipe.git
synced 2026-04-30 16:00:08 -04:00
Hides the '--schema-comments' flag in the root 'steampipe' command. Closes #2010
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user