Remove args

This commit is contained in:
Puskar Basu
2024-10-08 14:19:38 +05:30
parent 1daeac1038
commit 2f10d3a566
2 changed files with 1 additions and 8 deletions

View File

@@ -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").

View File

@@ -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