Documentation ¶
Index ¶
- Constants
- Variables
- func AssignAutoConfirmFlag(flags *pflag.FlagSet)
- func Confirm(flags *pflag.FlagSet, question string) (bool, error)
- func CreateBranch(ctx context.Context, repository, sourceBranch, destinationBranch string)
- func DBTDebug(projectRoot string, schemaRegex *regexp.Regexp, executor Executor) (string, error)
- func DBTRun(projectRoot, schema, schemaEnvVarIdentifier string, selectValues []string, ...) (string, error)
- func Die(err string, code int)
- func DieErr(err error)
- func DieFmt(msg string, args ...interface{})
- func DieOnErrorOrUnexpectedStatusCode(response interface{}, err error, expectedStatusCode int)
- func DieOnHTTPError(httpResponse *http.Response)
- func DisableColors()
- func Execute()
- func ExecuteCommand(cmd *exec.Cmd) ([]byte, error)
- func ExtractRepoAndBranchFromDBName(ctx context.Context, dbName string, client metastore.Client) (string, string, error)
- func Fmt(msg string, args ...interface{})
- func FmtDiff(diff api.Diff, withDirection bool)
- func IsBase64(s string) bool
- func IsValidAccessKeyID(accessKeyID string) bool
- func IsValidSecretAccessKey(secretAccessKey string) bool
- func ListRepositoriesAndAnalyze(ctx context.Context) error
- func MustBool(v bool, err error) bool
- func MustDuration(v time.Duration, err error) time.Duration
- func MustInt(v int, err error) int
- func MustInt64(v int64, err error) int64
- func MustParseBranchURI(name, s string) *uri.URI
- func MustParsePathURI(name, s string) *uri.URI
- func MustParseRefURI(name, s string) *uri.URI
- func MustParseRepoURI(name, s string) *uri.URI
- func MustSliceNonEmptyString(list string, v []string) []string
- func MustString(v string, err error) string
- func MustStringSlice(v []string, err error) []string
- func OpenByPath(path string) io.ReadSeekCloser
- func PrintTable(rows [][]interface{}, headers []interface{}, paginator *api.Pagination, ...)
- func RetrieveError(response interface{}, err error) error
- func ValidArgsRepository(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ValidateGenerateSchemaMacro(projectRoot, macrosDirName, generateSchemaFileName, schemaIdentifier string) error
- func Write(tpl string, data interface{})
- func WriteIfVerbose(tpl string, data interface{})
- func WriteTo(tpl string, data interface{}, w io.Writer)
- type APIError
- type CredentialsError
- type DBTResource
- type Detailed
- type Executor
- type FromTo
- type Pagination
- type StatementDoc
- type StatusCoder
- type Table
- type UnknownConfigError
- type UserMessage
- type WrongEndpointURIError
Constants ¶
View Source
const ( LakectlInteractive = "LAKECTL_INTERACTIVE" DeathMessage = "{{.Error|red}}\nError executing command.\n" DeathMessageWithFields = "{{.Message|red}}\n{{.Status}}\n" )
View Source
const ( AutoConfirmFlagName = "yes" AutoConfigFlagShortName = "y" AutoConfirmFlagHelp = "Automatically say yes to all confirmations" StdinFileName = "-" )
View Source
const (
DefaultBranch = "main"
)
View Source
const (
DefaultMaxIdleConnsPerHost = 100
)
View Source
const (
ParentNumberFlagName = "parent-number"
)
View Source
const (
PathDelimiter = "/"
)
Variables ¶
View Source
var ErrInvalidValueInList = errors.New("empty string in list")
ErrInvalidValueInList is an error returned when a parameter of type list contains an empty string
View Source
var ErrRequestFailed = errors.New("request failed")
Functions ¶
func AssignAutoConfirmFlag ¶ added in v0.31.0
func CreateBranch ¶ added in v0.61.0
CreateBranch creates a new branch with the given repository, and source and destination branch names
func DieOnErrorOrUnexpectedStatusCode ¶ added in v0.60.1
func DieOnHTTPError ¶ added in v0.58.0
func DisableColors ¶
func DisableColors()
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ExtractRepoAndBranchFromDBName ¶ added in v0.61.0
func ExtractRepoAndBranchFromDBName(ctx context.Context, dbName string, client metastore.Client) (string, string, error)
ExtractRepoAndBranchFromDBName extracts the repository and branch in which the metastore resides
func IsValidAccessKeyID ¶ added in v0.60.0
func IsValidSecretAccessKey ¶ added in v0.60.0
func ListRepositoriesAndAnalyze ¶ added in v0.60.0
func MustParseBranchURI ¶ added in v0.63.0
func MustParsePathURI ¶ added in v0.40.0
func MustParseRefURI ¶ added in v0.40.0
func MustParseRepoURI ¶ added in v0.40.0
func MustSliceNonEmptyString ¶ added in v0.54.0
func MustString ¶ added in v0.33.0
func MustStringSlice ¶ added in v0.54.0
func OpenByPath ¶ added in v0.33.0
func OpenByPath(path string) io.ReadSeekCloser
OpenByPath returns a reader from the given path. If path is "-", it consumes Stdin and opens a readable copy that is either deleted (POSIX) or will delete itself on close (non-POSIX, notably WINs).
func PrintTable ¶
func PrintTable(rows [][]interface{}, headers []interface{}, paginator *api.Pagination, amount int)
func RetrieveError ¶ added in v0.53.0
func ValidArgsRepository ¶ added in v0.83.3
func ValidateGenerateSchemaMacro ¶ added in v0.61.0
func WriteIfVerbose ¶ added in v0.62.0
func WriteIfVerbose(tpl string, data interface{})
Types ¶
type CredentialsError ¶ added in v0.60.0
func (*CredentialsError) Error ¶ added in v0.60.0
func (e *CredentialsError) Error() string
func (*CredentialsError) GetDetails ¶ added in v0.60.0
func (e *CredentialsError) GetDetails() string
type DBTResource ¶ added in v0.61.0
func DBTLsToJSON ¶ added in v0.61.0
func DBTLsToJSON(projectRoot, resourceType string, selectValues []string, executor Executor) ([]DBTResource, error)
type Pagination ¶
type StatementDoc ¶
type StatusCoder ¶ added in v0.40.0
type StatusCoder interface {
StatusCode() int
}
type UnknownConfigError ¶ added in v0.60.0
func (*UnknownConfigError) Error ¶ added in v0.60.0
func (e *UnknownConfigError) Error() string
func (*UnknownConfigError) GetDetails ¶ added in v0.60.0
func (e *UnknownConfigError) GetDetails() string
type UserMessage ¶ added in v0.60.0
type UserMessage struct {
Message string
}
type WrongEndpointURIError ¶ added in v0.60.0
func (*WrongEndpointURIError) Error ¶ added in v0.60.0
func (e *WrongEndpointURIError) Error() string
func (*WrongEndpointURIError) GetDetails ¶ added in v0.60.0
func (e *WrongEndpointURIError) GetDetails() string
Source Files ¶
- abuse.go
- action_validate.go
- actions.go
- actions_run.go
- annotate.go
- auth.go
- branch.go
- branch_protect.go
- branch_tools.go
- cat_hook_output.go
- commit.go
- common_helpers.go
- completion.go
- config.go
- dbt.go
- dbt_util.go
- diff.go
- docs.go
- doctor.go
- fs.go
- gc.go
- import.go
- ingest.go
- input.go
- log.go
- merge.go
- metastore.go
- refs.go
- repo.go
- root.go
- runs_describe.go
- runs_list.go
- show.go
- sst.go
- tag.go
- validargs.go
Click to show internal directories.
Click to hide internal directories.