cli

package
v3.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: Apache-2.0, Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Stdin  io.ReadCloser = os.Stdin
	Stdout io.Writer     = os.Stdout
	Stderr io.Writer     = os.Stderr
)

Functions

This section is empty.

Types

type CLICommand

type CLICommand struct {
	Host        string `json:"host"`
	Port        string `json:"port"`
	HistoryPath string `json:"history-path"`

	// Cloud Auth
	ClientID string `json:"client-id"`
	Region   string `json:"region"`
	Email    string `json:"email"`
	Password string `json:"password"`

	OrganizationID string `json:"org-id"`
	DatabaseID     string `json:"db-id"`

	Queryer Queryer `json:"-"`

	Stdin  io.ReadCloser `json:"-"`
	Stdout io.Writer     `json:"-"`
	Stderr io.Writer     `json:"-"`
	// contains filtered or unexported fields
}

func NewCLICommand

func NewCLICommand(logdest logger.Logger) *CLICommand

func (*CLICommand) Printf

func (cmd *CLICommand) Printf(format string, a ...any)

Printf is a helper method which sends the given payload to stdout.

func (*CLICommand) Run

func (cmd *CLICommand) Run(ctx context.Context) error

type Queryer

type Queryer interface {
	Query(org, db, sql string) (*featurebase.WireQueryResponse, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL