mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
Remove args
This commit is contained in:
@@ -71,11 +71,6 @@ Examples:
|
||||
cmdconfig.FlagOptions.NoOptDefVal(pconstants.ArgOn)).
|
||||
AddStringSliceFlag(pconstants.ArgSearchPath, nil, "Set a custom search_path for the steampipe user for a query session (comma-separated)").
|
||||
AddStringSliceFlag(pconstants.ArgSearchPathPrefix, nil, "Set a prefix to the current search path for a query session (comma-separated)").
|
||||
AddStringSliceFlag(pconstants.ArgVarFile, nil, "Specify a file containing variable values").
|
||||
// NOTE: use StringArrayFlag for ArgVariable, not StringSliceFlag
|
||||
// Cobra will interpret values passed to a StringSliceFlag as CSV,
|
||||
// where args passed to StringArrayFlag are not parsed and used raw
|
||||
AddStringArrayFlag(pconstants.ArgVariable, nil, "Specify the value of a variable").
|
||||
AddBoolFlag(pconstants.ArgInput, true, "Enable interactive prompts").
|
||||
AddBoolFlag(pconstants.ArgSnapshot, false, "Create snapshot in Turbot Pipes with the default (workspace) visibility").
|
||||
AddBoolFlag(pconstants.ArgShare, false, "Create snapshot in Turbot Pipes with 'anyone_with_link' visibility").
|
||||
|
||||
@@ -111,9 +111,7 @@ func (c *CmdBuilder) AddBoolFlag(name string, defaultValue bool, desc string, op
|
||||
func (c *CmdBuilder) AddCloudFlags() *CmdBuilder {
|
||||
return c.
|
||||
AddStringFlag(pconstants.ArgPipesHost, constants.DefaultPipesHost, "Turbot Pipes host").
|
||||
AddStringFlag(pconstants.ArgPipesToken, "", "Turbot Pipes authentication token").
|
||||
AddStringFlag(pconstants.ArgCloudHost, constants.DefaultPipesHost, "Turbot Pipes host", FlagOptions.Deprecated(pconstants.ArgPipesHost)).
|
||||
AddStringFlag(pconstants.ArgCloudToken, "", "Turbot Pipes authentication token", FlagOptions.Deprecated(pconstants.ArgPipesToken))
|
||||
AddStringFlag(pconstants.ArgPipesToken, "", "Turbot Pipes authentication token")
|
||||
}
|
||||
|
||||
// AddWorkspaceDatabaseFlag is helper function to add the workspace-databse flag to a command
|
||||
|
||||
Reference in New Issue
Block a user