base

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	subcommands.CommandRunBase

	BQProject string
	// contains filtered or unexported fields
}

Command is the common subcommand for crosgrep commands. It contains information like the logging verbosity and the current bigquery billing project// that is used for the underlying SQL query.

func (*Command) GetBQProject

func (c *Command) GetBQProject() string

GetBQProject returns the cloud project for bigquery explicitly specified on the command line or taken from the CROSGREP_BQ_PROJECT environment variable if no flag is provided.

func (*Command) InitFlags

func (c *Command) InitFlags()

InitFlags sets up the common flags for a command.

func (*Command) Verbose

func (c *Command) Verbose() bool

Verbose returns whether the command is intended to run with verbose logging enabled or not.

Jump to

Keyboard shortcuts

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