mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
removed mod-location arg and all references
This commit is contained in:
@@ -59,7 +59,6 @@ Examples:
|
||||
OnCmd(cmd).
|
||||
AddCloudFlags().
|
||||
AddWorkspaceDatabaseFlag().
|
||||
AddModLocationFlag().
|
||||
AddBoolFlag(pconstants.ArgHelp, false, "Help for query", cmdconfig.FlagOptions.WithShortHand("h")).
|
||||
AddBoolFlag(pconstants.ArgHeader, true, "Include column headers csv and table output").
|
||||
AddStringFlag(pconstants.ArgSeparator, ",", "Separator string for csv output").
|
||||
|
||||
@@ -62,7 +62,6 @@ connection from any Postgres compatible database client.`,
|
||||
|
||||
cmdconfig.
|
||||
OnCmd(cmd).
|
||||
AddModLocationFlag().
|
||||
AddBoolFlag(pconstants.ArgHelp, false, "Help for service start", cmdconfig.FlagOptions.WithShortHand("h")).
|
||||
AddIntFlag(pconstants.ArgDatabasePort, constants.DatabaseDefaultPort, "Database service port").
|
||||
AddStringFlag(pconstants.ArgDatabaseListenAddresses, string(db_local.ListenTypeNetwork), "Accept connections from: `local` (an alias for `localhost` only), `network` (an alias for `*`), or a comma separated list of hosts and/or IP addresses").
|
||||
|
||||
@@ -2,7 +2,6 @@ package cmdconfig
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/pflag"
|
||||
@@ -10,7 +9,6 @@ import (
|
||||
pconstants "github.com/turbot/pipe-fittings/constants"
|
||||
"github.com/turbot/pipe-fittings/utils"
|
||||
"github.com/turbot/steampipe/pkg/constants"
|
||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
||||
)
|
||||
|
||||
type CmdBuilder struct {
|
||||
@@ -124,14 +122,6 @@ func (c *CmdBuilder) AddWorkspaceDatabaseFlag() *CmdBuilder {
|
||||
AddStringFlag(pconstants.ArgWorkspaceDatabase, constants.DefaultWorkspaceDatabase, "Turbot Pipes workspace database")
|
||||
}
|
||||
|
||||
// AddModLocationFlag is helper function to add the mod-location flag to a command
|
||||
func (c *CmdBuilder) AddModLocationFlag() *CmdBuilder {
|
||||
cwd, err := os.Getwd()
|
||||
error_helpers.FailOnError(err)
|
||||
return c.
|
||||
AddStringFlag(pconstants.ArgModLocation, cwd, "Path to the workspace working directory")
|
||||
}
|
||||
|
||||
// AddStringSliceFlag is a helper function to add a flag that accepts an array of strings
|
||||
func (c *CmdBuilder) AddStringSliceFlag(name string, defaultValue []string, desc string, opts ...FlagOption) *CmdBuilder {
|
||||
c.cmd.Flags().StringSlice(name, defaultValue, desc)
|
||||
|
||||
Reference in New Issue
Block a user