Documentation ¶
Overview ¶
Package commands contains the command functions executed based on the dolt subcommand specified on the command line.
The goal of the code within this package and sub packages is to be a thin client, handling user input and displaying formatted output to the user. The hope is that someone could take the library code, and implement the same functionality contained within the command line with very little work beyond providing a new user interface.
Index ¶
- Constants
- Variables
- func BuildVerrAndExit(errMsg string, cause error) int
- func CreateMarkdown(wr io.Writer, cmdDoc cli.CommandDocumentation) error
- func GetResultFormat(format string) (engine.PrintResultFormat, errhand.VerboseError)
- func GetStagedWithVErr(dEnv *env.DoltEnv) (*doltdb.RootValue, errhand.VerboseError)
- func GetWorkingWithVErr(dEnv *env.DoltEnv) (*doltdb.RootValue, errhand.VerboseError)
- func HandleDocTableVErrAndExitCode() int
- func HandleVErrAndExitCode(verr errhand.VerboseError, usage cli.UsagePrinter) int
- func HasTopLevelOrderByClause(query string) bool
- func MaybeGetCommitWithVErr(dEnv *env.DoltEnv, maybeCommit string) (*doltdb.Commit, errhand.VerboseError)
- func MaybeMigrateEnv(ctx context.Context, dEnv *env.DoltEnv) (*env.DoltEnv, error)
- func NewSqlStatementScanner(input io.Reader) *statementScanner
- func PrintDiffsNotStaged(ctx context.Context, dEnv *env.DoltEnv, wr io.Writer, ...) int
- func PrintStatus(ctx context.Context, dEnv *env.DoltEnv, ...) error
- func ResolveCommitWithVErr(dEnv *env.DoltEnv, cSpecStr string) (*doltdb.Commit, errhand.VerboseError)
- func UpdateWorkingWithVErr(dEnv *env.DoltEnv, updatedRoot *doltdb.RootValue) errhand.VerboseError
- type AddCmd
- type BackupCmd
- func (cmd BackupCmd) ArgParser() *argparser.ArgParser
- func (cmd BackupCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd BackupCmd) Description() string
- func (cmd BackupCmd) EventType() eventsapi.ClientEventType
- func (cmd BackupCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd BackupCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd BackupCmd) Name() string
- func (cmd BackupCmd) RequiresRepo() bool
- type BlameCmd
- func (cmd BlameCmd) ArgParser() *argparser.ArgParser
- func (cmd BlameCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd BlameCmd) Description() string
- func (cmd BlameCmd) EventType() eventsapi.ClientEventType
- func (cmd BlameCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd BlameCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd BlameCmd) Name() string
- type BranchCmd
- func (cmd BranchCmd) ArgParser() *argparser.ArgParser
- func (cmd BranchCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd BranchCmd) Description() string
- func (cmd BranchCmd) EventType() eventsapi.ClientEventType
- func (cmd BranchCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd BranchCmd) Name() string
- type CheckoutCmd
- func (cmd CheckoutCmd) ArgParser() *argparser.ArgParser
- func (cmd CheckoutCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd CheckoutCmd) Description() string
- func (cmd CheckoutCmd) EventType() eventsapi.ClientEventType
- func (cmd CheckoutCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd CheckoutCmd) Name() string
- type CleanCmd
- func (cmd CleanCmd) ArgParser() *argparser.ArgParser
- func (cmd CleanCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd CleanCmd) Description() string
- func (cmd CleanCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd CleanCmd) Name() string
- type CloneCmd
- func (cmd CloneCmd) ArgParser() *argparser.ArgParser
- func (cmd CloneCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd CloneCmd) Description() string
- func (cmd CloneCmd) EventType() eventsapi.ClientEventType
- func (cmd CloneCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd CloneCmd) Name() string
- func (cmd CloneCmd) RequiresRepo() bool
- type CommitCmd
- func (cmd CommitCmd) ArgParser() *argparser.ArgParser
- func (cmd CommitCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd CommitCmd) Description() string
- func (cmd CommitCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd CommitCmd) Name() string
- type ConfigCmd
- func (cmd ConfigCmd) ArgParser() *argparser.ArgParser
- func (cmd ConfigCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd ConfigCmd) Description() string
- func (cmd ConfigCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd ConfigCmd) Name() string
- func (cmd ConfigCmd) RequiresRepo() bool
- type DiffCmd
- func (cmd DiffCmd) ArgParser() *argparser.ArgParser
- func (cmd DiffCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd DiffCmd) Description() string
- func (cmd DiffCmd) EventType() eventsapi.ClientEventType
- func (cmd DiffCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd DiffCmd) Name() string
- type DiffSink
- type DumpCmd
- func (cmd DumpCmd) ArgParser() *argparser.ArgParser
- func (cmd DumpCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd DumpCmd) Description() string
- func (cmd DumpCmd) EventType() eventsapi.ClientEventType
- func (cmd DumpCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd DumpCmd) Name() string
- type DumpDocsCmd
- func (cmd *DumpDocsCmd) ArgParser() *argparser.ArgParser
- func (cmd *DumpDocsCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd *DumpDocsCmd) Description() string
- func (cmd *DumpDocsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd *DumpDocsCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd *DumpDocsCmd) Hidden() bool
- func (cmd *DumpDocsCmd) Name() string
- func (cmd *DumpDocsCmd) RequiresRepo() bool
- type FetchCmd
- func (cmd FetchCmd) ArgParser() *argparser.ArgParser
- func (cmd FetchCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd FetchCmd) Description() string
- func (cmd FetchCmd) EventType() eventsapi.ClientEventType
- func (cmd FetchCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd FetchCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd FetchCmd) Name() string
- type FilterBranchCmd
- func (cmd FilterBranchCmd) ArgParser() *argparser.ArgParser
- func (cmd FilterBranchCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd FilterBranchCmd) Description() string
- func (cmd FilterBranchCmd) EventType() eventsapi.ClientEventType
- func (cmd FilterBranchCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd FilterBranchCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd FilterBranchCmd) Name() string
- type FilterFn
- type GarbageCollectionCmd
- func (cmd GarbageCollectionCmd) ArgParser() *argparser.ArgParser
- func (cmd GarbageCollectionCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd GarbageCollectionCmd) Description() string
- func (cmd GarbageCollectionCmd) EventType() eventsapi.ClientEventType
- func (cmd GarbageCollectionCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd GarbageCollectionCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd GarbageCollectionCmd) Hidden() bool
- func (cmd GarbageCollectionCmd) Name() string
- func (cmd GarbageCollectionCmd) RequiresRepo() bool
- type GenZshCompCmd
- func (z GenZshCompCmd) ArgParser() *argparser.ArgParser
- func (z GenZshCompCmd) CreateMarkdown(writer io.Writer, commandStr string) error
- func (z GenZshCompCmd) Description() string
- func (z GenZshCompCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (z GenZshCompCmd) Hidden() bool
- func (z GenZshCompCmd) Name() string
- func (z GenZshCompCmd) RequiresRepo() bool
- type InitCmd
- func (cmd InitCmd) ArgParser() *argparser.ArgParser
- func (cmd InitCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd InitCmd) Description() string
- func (cmd InitCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd InitCmd) Name() string
- func (cmd InitCmd) RequiresRepo() bool
- type InspectCmd
- func (cmd InspectCmd) ArgParser() *argparser.ArgParser
- func (cmd InspectCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd InspectCmd) Description() string
- func (cmd InspectCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd InspectCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd InspectCmd) Hidden() bool
- func (cmd InspectCmd) Name() string
- func (cmd InspectCmd) RequiresRepo() bool
- type LogCmd
- func (cmd LogCmd) ArgParser() *argparser.ArgParser
- func (cmd LogCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd LogCmd) Description() string
- func (cmd LogCmd) EventType() eventsapi.ClientEventType
- func (cmd LogCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd LogCmd) Name() string
- type LoginCmd
- func (cmd LoginCmd) ArgParser() *argparser.ArgParser
- func (cmd LoginCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd LoginCmd) Description() string
- func (cmd LoginCmd) EventType() eventsapi.ClientEventType
- func (cmd LoginCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd LoginCmd) InstallsSignalHandlers() bool
- func (cmd LoginCmd) Name() string
- func (cmd LoginCmd) RequiresRepo() bool
- type LsCmd
- func (cmd LsCmd) ArgParser() *argparser.ArgParser
- func (cmd LsCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd LsCmd) Description() string
- func (cmd LsCmd) EventType() eventsapi.ClientEventType
- func (cmd LsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd LsCmd) Name() string
- type MergeBaseCmd
- func (cmd MergeBaseCmd) ArgParser() *argparser.ArgParser
- func (cmd MergeBaseCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd MergeBaseCmd) Description() string
- func (cmd MergeBaseCmd) EventType() eventsapi.ClientEventType
- func (cmd MergeBaseCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd MergeBaseCmd) Name() string
- type MergeCmd
- func (cmd MergeCmd) ArgParser() *argparser.ArgParser
- func (cmd MergeCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd MergeCmd) Description() string
- func (cmd MergeCmd) EventType() eventsapi.ClientEventType
- func (cmd MergeCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd MergeCmd) Name() string
- type MigrateCmd
- func (cmd MigrateCmd) ArgParser() *argparser.ArgParser
- func (cmd MigrateCmd) CreateMarkdown(_ io.Writer, _ string) error
- func (cmd MigrateCmd) Description() string
- func (cmd MigrateCmd) EventType() eventsapi.ClientEventType
- func (cmd MigrateCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd MigrateCmd) Name() string
- type PullCmd
- func (cmd PullCmd) ArgParser() *argparser.ArgParser
- func (cmd PullCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd PullCmd) Description() string
- func (cmd PullCmd) EventType() eventsapi.ClientEventType
- func (cmd PullCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd PullCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd PullCmd) Name() string
- type PushCmd
- func (cmd PushCmd) ArgParser() *argparser.ArgParser
- func (cmd PushCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd PushCmd) Description() string
- func (cmd PushCmd) EventType() eventsapi.ClientEventType
- func (cmd PushCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd PushCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd PushCmd) Name() string
- type ReadTablesCmd
- func (cmd ReadTablesCmd) ArgParser() *argparser.ArgParser
- func (cmd ReadTablesCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd ReadTablesCmd) Description() string
- func (cmd ReadTablesCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd ReadTablesCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd ReadTablesCmd) Name() string
- func (cmd ReadTablesCmd) RequiresRepo() bool
- type RemoteCmd
- func (cmd RemoteCmd) ArgParser() *argparser.ArgParser
- func (cmd RemoteCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd RemoteCmd) Description() string
- func (cmd RemoteCmd) EventType() eventsapi.ClientEventType
- func (cmd RemoteCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd RemoteCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd RemoteCmd) Name() string
- type ResetCmd
- func (cmd ResetCmd) ArgParser() *argparser.ArgParser
- func (cmd ResetCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd ResetCmd) Description() string
- func (cmd ResetCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd ResetCmd) Name() string
- type RevertCmd
- func (cmd RevertCmd) ArgParser() *argparser.ArgParser
- func (cmd RevertCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd RevertCmd) Description() string
- func (cmd RevertCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd RevertCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd RevertCmd) Name() string
- type RootsCmd
- func (cmd RootsCmd) ArgParser() *argparser.ArgParser
- func (cmd RootsCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd RootsCmd) Description() string
- func (cmd RootsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd RootsCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
- func (cmd RootsCmd) Hidden() bool
- func (cmd RootsCmd) Name() string
- func (cmd RootsCmd) RequiresRepo() bool
- type SelectTransform
- type SendMetricsCmd
- func (cmd SendMetricsCmd) ArgParser() *argparser.ArgParser
- func (cmd SendMetricsCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd SendMetricsCmd) Description() string
- func (cmd SendMetricsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd SendMetricsCmd) Hidden() bool
- func (cmd SendMetricsCmd) Name() string
- func (cmd SendMetricsCmd) RequiresRepo() bool
- type SqlCmd
- func (cmd SqlCmd) ArgParser() *argparser.ArgParser
- func (cmd SqlCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd SqlCmd) Description() string
- func (cmd SqlCmd) EventType() eventsapi.ClientEventType
- func (cmd SqlCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd SqlCmd) InstallsSignalHandlers() bool
- func (cmd SqlCmd) Name() string
- func (cmd SqlCmd) RequiresRepo() bool
- type StatusCmd
- func (cmd StatusCmd) ArgParser() *argparser.ArgParser
- func (cmd StatusCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd StatusCmd) Description() string
- func (cmd StatusCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd StatusCmd) Name() string
- type TableFileIter
- type TagCmd
- func (cmd TagCmd) ArgParser() *argparser.ArgParser
- func (cmd TagCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd TagCmd) Description() string
- func (cmd TagCmd) EventType() eventsapi.ClientEventType
- func (cmd TagCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd TagCmd) Name() string
- type TextSpinner
- type VersionCmd
- func (cmd VersionCmd) ArgParser() *argparser.ArgParser
- func (cmd VersionCmd) CreateMarkdown(wr io.Writer, commandStr string) error
- func (cmd VersionCmd) Description() string
- func (cmd VersionCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
- func (cmd VersionCmd) Name() string
- func (cmd VersionCmd) RequiresRepo() bool
Constants ¶
const ( SchemaOnlyDiff diffPart = 1 // 0b0001 DataOnlyDiff diffPart = 2 // 0b0010 Summary diffPart = 4 // 0b0100 SchemaAndDataDiff = SchemaOnlyDiff | DataOnlyDiff TabularDiffOutput diffOutput = 1 SQLDiffOutput diffOutput = 2 DataFlag = "data" SchemaFlag = "schema" SummaryFlag = "summary" SQLFlag = "sql" CachedFlag = "cached" )
const ( SoftResetParam = "soft" HardResetParam = "hard" )
const ( QueryFlag = "query" FormatFlag = "result-format" BatchFlag = "batch" )
const (
DryrunCleanParam = "dry-run"
)
const (
SendMetricsCommand = "send-metrics"
)
SendMetricsCommand is the command used for sending metrics
Variables ¶
var ErrInvalidPort = errors.New("invalid port")
Functions ¶
func BuildVerrAndExit ¶
BuildVerrAndExit is a shortcut for building a verbose error and calling HandleVerrAndExitCode with it
func CreateMarkdown ¶
func CreateMarkdown(wr io.Writer, cmdDoc cli.CommandDocumentation) error
func GetResultFormat ¶
func GetResultFormat(format string) (engine.PrintResultFormat, errhand.VerboseError)
func GetStagedWithVErr ¶
func GetWorkingWithVErr ¶
func HandleDocTableVErrAndExitCode ¶
func HandleDocTableVErrAndExitCode() int
func HandleVErrAndExitCode ¶
func HandleVErrAndExitCode(verr errhand.VerboseError, usage cli.UsagePrinter) int
func MaybeGetCommitWithVErr ¶
func MaybeMigrateEnv ¶
func NewSqlStatementScanner ¶
func PrintDiffsNotStaged ¶
func PrintStatus ¶
func PrintStatus(ctx context.Context, dEnv *env.DoltEnv, stagedTbls, notStagedTbls []diff.TableDelta, workingTblsInConflict, workingTblsWithViolations []string, stagedDocs, notStagedDocs *diff.DocDiffs) error
TODO: working docs in conflict param not used here
func ResolveCommitWithVErr ¶
func UpdateWorkingWithVErr ¶
Types ¶
type AddCmd ¶
type AddCmd struct{}
func (AddCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (AddCmd) Description ¶
Description returns a description of the command
type BackupCmd ¶
type BackupCmd struct{}
func (BackupCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (BackupCmd) Description ¶
Description returns a description of the command
func (BackupCmd) EventType ¶
func (cmd BackupCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (BackupCmd) Exec ¶
func (cmd BackupCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (BackupCmd) GatedForNBF ¶
func (cmd BackupCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (BackupCmd) Name ¶
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (BackupCmd) RequiresRepo ¶
type BlameCmd ¶
type BlameCmd struct{}
func (BlameCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (BlameCmd) Description ¶
Description returns a description of the command
func (BlameCmd) EventType ¶
func (cmd BlameCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (BlameCmd) Exec ¶
func (cmd BlameCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec implements the `dolt blame` command. Blame annotates each row in the given table with information from the revision which last modified the row, optionally starting from a given revision.
Blame is computed as follows:
First, a blame graph is initialized with one node for every row in the table at the given commit (defaulting to HEAD of the currently checked-out branch).
Starting from the given commit, walk backwards through the commit graph (currently by following each commit's first parent, though this may change in the future).
For each adjacent pair of commits `old` and `new`, check each remaining unblamed node to see if the row it represents changed between the commits. If so, mark it with `new` as the blame origin and continue to the next node without blame.
When all nodes have blame information, stop iterating through commits and print the blame graph. Exec executes the command
func (BlameCmd) GatedForNBF ¶
func (cmd BlameCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
type BranchCmd ¶
type BranchCmd struct{}
func (BranchCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (BranchCmd) Description ¶
Description returns a description of the command
func (BranchCmd) EventType ¶
func (cmd BranchCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type CheckoutCmd ¶
type CheckoutCmd struct{}
func (CheckoutCmd) ArgParser ¶
func (cmd CheckoutCmd) ArgParser() *argparser.ArgParser
func (CheckoutCmd) CreateMarkdown ¶
func (cmd CheckoutCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (CheckoutCmd) Description ¶
func (cmd CheckoutCmd) Description() string
Description returns a description of the command
func (CheckoutCmd) EventType ¶
func (cmd CheckoutCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (CheckoutCmd) Exec ¶
func (cmd CheckoutCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (CheckoutCmd) Name ¶
func (cmd CheckoutCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
type CleanCmd ¶
type CleanCmd struct{}
func (CleanCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (CleanCmd) Description ¶
Description returns a description of the command
type CloneCmd ¶
type CloneCmd struct{}
func (CloneCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (CloneCmd) Description ¶
Description returns a description of the command
func (CloneCmd) EventType ¶
func (cmd CloneCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (CloneCmd) Exec ¶
func (cmd CloneCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (CloneCmd) Name ¶
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (CloneCmd) RequiresRepo ¶
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type CommitCmd ¶
type CommitCmd struct{}
func (CommitCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (CommitCmd) Description ¶
Description returns a description of the command
type ConfigCmd ¶
type ConfigCmd struct{}
func (ConfigCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (ConfigCmd) Description ¶
Description returns a description of the command
func (ConfigCmd) Exec ¶
func (cmd ConfigCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec is used by the config command to allow users to view / edit their global and repository local configurations. Exec executes the command
func (ConfigCmd) Name ¶
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (ConfigCmd) RequiresRepo ¶
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type DiffCmd ¶
type DiffCmd struct{}
func (DiffCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (DiffCmd) Description ¶
Description returns a description of the command
func (DiffCmd) EventType ¶
func (cmd DiffCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type DumpCmd ¶
type DumpCmd struct{}
func (DumpCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the help text for the command at the given path
func (DumpCmd) Description ¶
Description returns a description of the command
func (DumpCmd) EventType ¶
func (cmd DumpCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type DumpDocsCmd ¶
type DumpDocsCmd struct {
DoltCommand cli.SubCommandHandler
}
func (*DumpDocsCmd) ArgParser ¶
func (cmd *DumpDocsCmd) ArgParser() *argparser.ArgParser
func (*DumpDocsCmd) CreateMarkdown ¶
func (cmd *DumpDocsCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (*DumpDocsCmd) Description ¶
func (cmd *DumpDocsCmd) Description() string
Description returns a description of the command
func (*DumpDocsCmd) Exec ¶
func (cmd *DumpDocsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (*DumpDocsCmd) GatedForNBF ¶
func (cmd *DumpDocsCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (*DumpDocsCmd) Hidden ¶
func (cmd *DumpDocsCmd) Hidden() bool
Hidden should return true if this command should be hidden from the help text
func (*DumpDocsCmd) Name ¶
func (cmd *DumpDocsCmd) Name() string
Name returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (*DumpDocsCmd) RequiresRepo ¶
func (cmd *DumpDocsCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type FetchCmd ¶
type FetchCmd struct{}
func (FetchCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (FetchCmd) Description ¶
Description returns a description of the command
func (FetchCmd) EventType ¶
func (cmd FetchCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (FetchCmd) Exec ¶
func (cmd FetchCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (FetchCmd) GatedForNBF ¶
func (cmd FetchCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
type FilterBranchCmd ¶
type FilterBranchCmd struct{}
func (FilterBranchCmd) ArgParser ¶
func (cmd FilterBranchCmd) ArgParser() *argparser.ArgParser
func (FilterBranchCmd) CreateMarkdown ¶
func (cmd FilterBranchCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (FilterBranchCmd) Description ¶
func (cmd FilterBranchCmd) Description() string
Description returns a description of the command
func (FilterBranchCmd) EventType ¶
func (cmd FilterBranchCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (FilterBranchCmd) Exec ¶
func (cmd FilterBranchCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (FilterBranchCmd) GatedForNBF ¶
func (cmd FilterBranchCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (FilterBranchCmd) Name ¶
func (cmd FilterBranchCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
type GarbageCollectionCmd ¶
type GarbageCollectionCmd struct{}
func (GarbageCollectionCmd) ArgParser ¶
func (cmd GarbageCollectionCmd) ArgParser() *argparser.ArgParser
func (GarbageCollectionCmd) CreateMarkdown ¶
func (cmd GarbageCollectionCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (GarbageCollectionCmd) Description ¶
func (cmd GarbageCollectionCmd) Description() string
Description returns a description of the command
func (GarbageCollectionCmd) EventType ¶
func (cmd GarbageCollectionCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (GarbageCollectionCmd) Exec ¶
func (cmd GarbageCollectionCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Version displays the version of the running dolt client Exec executes the command
func (GarbageCollectionCmd) GatedForNBF ¶
func (cmd GarbageCollectionCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (GarbageCollectionCmd) Hidden ¶
func (cmd GarbageCollectionCmd) Hidden() bool
Hidden should return true if this command should be hidden from the help text
func (GarbageCollectionCmd) Name ¶
func (cmd GarbageCollectionCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (GarbageCollectionCmd) RequiresRepo ¶
func (cmd GarbageCollectionCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type GenZshCompCmd ¶
type GenZshCompCmd struct {
DoltCommand cli.SubCommandHandler
}
func (GenZshCompCmd) ArgParser ¶
func (z GenZshCompCmd) ArgParser() *argparser.ArgParser
func (GenZshCompCmd) CreateMarkdown ¶
func (z GenZshCompCmd) CreateMarkdown(writer io.Writer, commandStr string) error
func (GenZshCompCmd) Description ¶
func (z GenZshCompCmd) Description() string
func (GenZshCompCmd) Hidden ¶
func (z GenZshCompCmd) Hidden() bool
Hidden should return true if this command should be hidden from the help text
func (GenZshCompCmd) Name ¶
func (z GenZshCompCmd) Name() string
func (GenZshCompCmd) RequiresRepo ¶
func (z GenZshCompCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type InitCmd ¶
type InitCmd struct{}
func (InitCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (InitCmd) Description ¶
Description returns a description of the command
func (InitCmd) Exec ¶
func (cmd InitCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (InitCmd) Name ¶
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (InitCmd) RequiresRepo ¶
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type InspectCmd ¶
type InspectCmd struct { }
func (InspectCmd) ArgParser ¶
func (cmd InspectCmd) ArgParser() *argparser.ArgParser
func (InspectCmd) CreateMarkdown ¶
func (cmd InspectCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (InspectCmd) Description ¶
func (cmd InspectCmd) Description() string
Description returns a description of the command
func (InspectCmd) Exec ¶
func (cmd InspectCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (InspectCmd) GatedForNBF ¶
func (cmd InspectCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (InspectCmd) Hidden ¶
func (cmd InspectCmd) Hidden() bool
Hidden should return true if this command should be hidden from the help text
func (InspectCmd) Name ¶
func (cmd InspectCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (InspectCmd) RequiresRepo ¶
func (cmd InspectCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type LogCmd ¶
type LogCmd struct{}
func (LogCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (LogCmd) Description ¶
Description returns a description of the command
func (LogCmd) EventType ¶
func (cmd LogCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type LoginCmd ¶
type LoginCmd struct{}
func (LoginCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (LoginCmd) Description ¶
Description returns a description of the command
func (LoginCmd) EventType ¶
func (cmd LoginCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (LoginCmd) Exec ¶
func (cmd LoginCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (LoginCmd) InstallsSignalHandlers ¶
The LoginCmd doesn't handle its own signals, but should stop cancel global context when receiving SIGINT signal
func (LoginCmd) Name ¶
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (LoginCmd) RequiresRepo ¶
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type LsCmd ¶
type LsCmd struct{}
func (LsCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (LsCmd) Description ¶
Description returns a description of the command
func (LsCmd) EventType ¶
func (cmd LsCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type MergeBaseCmd ¶
type MergeBaseCmd struct{}
func (MergeBaseCmd) ArgParser ¶
func (cmd MergeBaseCmd) ArgParser() *argparser.ArgParser
func (MergeBaseCmd) CreateMarkdown ¶
func (cmd MergeBaseCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (MergeBaseCmd) Description ¶
func (cmd MergeBaseCmd) Description() string
Description returns a description of the command
func (MergeBaseCmd) EventType ¶
func (cmd MergeBaseCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (MergeBaseCmd) Exec ¶
func (cmd MergeBaseCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (MergeBaseCmd) Name ¶
func (cmd MergeBaseCmd) Name() string
Name returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
type MergeCmd ¶
type MergeCmd struct{}
func (MergeCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (MergeCmd) Description ¶
Description returns a description of the command
func (MergeCmd) EventType ¶
func (cmd MergeCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type MigrateCmd ¶
type MigrateCmd struct{}
func (MigrateCmd) ArgParser ¶
func (cmd MigrateCmd) ArgParser() *argparser.ArgParser
func (MigrateCmd) CreateMarkdown ¶
func (cmd MigrateCmd) CreateMarkdown(_ io.Writer, _ string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (MigrateCmd) Description ¶
func (cmd MigrateCmd) Description() string
Description returns a description of the command
func (MigrateCmd) EventType ¶
func (cmd MigrateCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (MigrateCmd) Exec ¶
func (cmd MigrateCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (MigrateCmd) Name ¶
func (cmd MigrateCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
type PullCmd ¶
type PullCmd struct{}
func (PullCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (PullCmd) Description ¶
Description returns a description of the command
func (PullCmd) EventType ¶
func (cmd PullCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (PullCmd) Exec ¶
func (cmd PullCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (PullCmd) GatedForNBF ¶
func (cmd PullCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
type PushCmd ¶
type PushCmd struct{}
func (PushCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (PushCmd) Description ¶
Description returns a description of the command
func (PushCmd) EventType ¶
func (cmd PushCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (PushCmd) Exec ¶
func (cmd PushCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (PushCmd) GatedForNBF ¶
func (cmd PushCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
type ReadTablesCmd ¶
type ReadTablesCmd struct{}
ReadTablesCmd is the implementation of the shallow-clone command
func (ReadTablesCmd) ArgParser ¶
func (cmd ReadTablesCmd) ArgParser() *argparser.ArgParser
func (ReadTablesCmd) CreateMarkdown ¶
func (cmd ReadTablesCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (ReadTablesCmd) Description ¶
func (cmd ReadTablesCmd) Description() string
Description returns a description of the command
func (ReadTablesCmd) Exec ¶
func (cmd ReadTablesCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (ReadTablesCmd) GatedForNBF ¶
func (cmd ReadTablesCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (ReadTablesCmd) Name ¶
func (cmd ReadTablesCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (ReadTablesCmd) RequiresRepo ¶
func (cmd ReadTablesCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type RemoteCmd ¶
type RemoteCmd struct{}
func (RemoteCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (RemoteCmd) Description ¶
Description returns a description of the command
func (RemoteCmd) EventType ¶
func (cmd RemoteCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (RemoteCmd) Exec ¶
func (cmd RemoteCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (RemoteCmd) GatedForNBF ¶
func (cmd RemoteCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
type ResetCmd ¶
type ResetCmd struct{}
func (ResetCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (ResetCmd) Description ¶
Description returns a description of the command
type RevertCmd ¶
type RevertCmd struct{}
func (RevertCmd) CreateMarkdown ¶
CreateMarkdown implements the interface cli.Command.
func (RevertCmd) Description ¶
Description implements the interface cli.Command.
func (RevertCmd) Exec ¶
func (cmd RevertCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec implements the interface cli.Command.
func (RevertCmd) GatedForNBF ¶
func (cmd RevertCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
type RootsCmd ¶
type RootsCmd struct { }
func (RootsCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (RootsCmd) Description ¶
Description returns a description of the command
func (RootsCmd) Exec ¶
func (cmd RootsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command
func (RootsCmd) GatedForNBF ¶
func (cmd RootsCmd) GatedForNBF(nbf *types.NomsBinFormat) bool
func (RootsCmd) Hidden ¶
Hidden should return true if this command should be hidden from the help text
func (RootsCmd) Name ¶
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (RootsCmd) RequiresRepo ¶
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type SelectTransform ¶
type SelectTransform struct { Pipeline *pipeline.Pipeline // contains filtered or unexported fields }
func NewSelTrans ¶
func NewSelTrans(filter FilterFn, limit int) *SelectTransform
func (*SelectTransform) LimitAndFilter ¶
func (st *SelectTransform) LimitAndFilter(inRow row.Row, props pipeline.ReadableMap) ([]*pipeline.TransformedRowResult, string)
type SendMetricsCmd ¶
type SendMetricsCmd struct{}
func (SendMetricsCmd) ArgParser ¶
func (cmd SendMetricsCmd) ArgParser() *argparser.ArgParser
func (SendMetricsCmd) CreateMarkdown ¶
func (cmd SendMetricsCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (SendMetricsCmd) Description ¶
func (cmd SendMetricsCmd) Description() string
Description returns a description of the command
func (SendMetricsCmd) Exec ¶
func (cmd SendMetricsCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec is the implementation of the command that flushes the events to the grpc service Exec executes the command
func (SendMetricsCmd) Hidden ¶
func (cmd SendMetricsCmd) Hidden() bool
Hidden should return true if this command should be hidden from the help text
func (SendMetricsCmd) Name ¶
func (cmd SendMetricsCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (SendMetricsCmd) RequiresRepo ¶
func (cmd SendMetricsCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
type SqlCmd ¶
type SqlCmd struct {
VersionStr string
}
func (SqlCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (SqlCmd) Description ¶
Description returns a description of the command
func (SqlCmd) EventType ¶
func (cmd SqlCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
func (SqlCmd) Exec ¶
func (cmd SqlCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Exec executes the command Unlike other commands, sql doesn't set a new working root directly, as the SQL layer updates the working set as necessary when committing work.
func (SqlCmd) InstallsSignalHandlers ¶
The SQL shell installs its own signal handlers so that you can cancel a running query without ending the entire process
func (SqlCmd) Name ¶
Name returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (SqlCmd) RequiresRepo ¶
RequiresRepo indicates that this command does not have to be run from within a dolt data repository directory. In this case it is because this command supports the multiDBDirFlag which can pass in a directory. In the event that that parameter is not provided there is additional error handling within this command to make sure that this was in fact run from within a dolt data repository directory.
type StatusCmd ¶
type StatusCmd struct{}
func (StatusCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (StatusCmd) Description ¶
Description returns a description of the command
type TableFileIter ¶
type TableFileIter struct {
// contains filtered or unexported fields
}
func NewTableFileIter ¶
func NewTableFileIter(dirs []string, fs filesys.Filesys) (*TableFileIter, error)
type TagCmd ¶
type TagCmd struct{}
func (TagCmd) CreateMarkdown ¶
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (TagCmd) Description ¶
Description returns a description of the command
func (TagCmd) EventType ¶
func (cmd TagCmd) EventType() eventsapi.ClientEventType
EventType returns the type of the event to log
type TextSpinner ¶
type TextSpinner struct {
// contains filtered or unexported fields
}
type VersionCmd ¶
type VersionCmd struct {
VersionStr string
}
func (VersionCmd) ArgParser ¶
func (cmd VersionCmd) ArgParser() *argparser.ArgParser
func (VersionCmd) CreateMarkdown ¶
func (cmd VersionCmd) CreateMarkdown(wr io.Writer, commandStr string) error
CreateMarkdown creates a markdown file containing the helptext for the command at the given path
func (VersionCmd) Description ¶
func (cmd VersionCmd) Description() string
Description returns a description of the command
func (VersionCmd) Exec ¶
func (cmd VersionCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int
Version displays the version of the running dolt client Exec executes the command
func (VersionCmd) Name ¶
func (cmd VersionCmd) Name() string
Name is returns the name of the Dolt cli command. This is what is used on the command line to invoke the command
func (VersionCmd) RequiresRepo ¶
func (cmd VersionCmd) RequiresRepo() bool
RequiresRepo should return false if this interface is implemented, and the command does not have the requirement that it be run from within a data repository directory
Source Files ¶
- add.go
- backup.go
- blame.go
- branch.go
- checkout.go
- clean.go
- clone.go
- commit.go
- config.go
- diff.go
- doc.go
- dump.go
- dump_docs.go
- fetch.go
- filter-branch.go
- gc.go
- gen_zsh_comp.go
- init.go
- inspect.go
- log.go
- login.go
- ls.go
- merge.go
- merge_base.go
- migrate.go
- pull.go
- push.go
- read_tables.go
- remote.go
- reset.go
- revert.go
- roots.go
- select_where.go
- send_metrics.go
- sql.go
- sql_statement_scanner.go
- status.go
- tag.go
- utils.go
- version.go