cnfcmds

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.NewSubCommandHandler("conflicts", "Commands for viewing and resolving merge conflicts.", []cli.Command{
	CatCmd{},
	ResolveCmd{},
})

Functions

This section is empty.

Types

type CatCmd

type CatCmd struct{}

func (CatCmd) ArgParser

func (cmd CatCmd) ArgParser() *argparser.ArgParser

func (CatCmd) CreateMarkdown

func (cmd CatCmd) CreateMarkdown(wr io.Writer, commandStr string) error

CreateMarkdown creates a markdown file containing the helptext for the command at the given path

func (CatCmd) Description

func (cmd CatCmd) Description() string

Description returns a description of the command

func (CatCmd) EventType

func (cmd CatCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (CatCmd) Exec

func (cmd CatCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int

Exec executes the command

func (CatCmd) GatedForNBF

func (cmd CatCmd) GatedForNBF(nbf *types.NomsBinFormat) bool

func (CatCmd) Name

func (cmd CatCmd) 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 ResolveCmd

type ResolveCmd struct{}

func (ResolveCmd) ArgParser

func (cmd ResolveCmd) ArgParser() *argparser.ArgParser

func (ResolveCmd) CreateMarkdown

func (cmd ResolveCmd) CreateMarkdown(wr io.Writer, commandStr string) error

CreateMarkdown creates a markdown file containing the helptext for the command at the given path

func (ResolveCmd) Description

func (cmd ResolveCmd) Description() string

Description returns a description of the command

func (ResolveCmd) EventType

func (cmd ResolveCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (ResolveCmd) Exec

func (cmd ResolveCmd) Exec(ctx context.Context, commandStr string, args []string, dEnv *env.DoltEnv) int

Exec executes the command

func (ResolveCmd) GatedForNBF

func (cmd ResolveCmd) GatedForNBF(nbf *types.NomsBinFormat) bool

func (ResolveCmd) Name

func (cmd ResolveCmd) 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

Jump to

Keyboard shortcuts

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