credcmds

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.NewSubCommandHandler("creds", "Commands for managing credentials.", []cli.Command{
	NewCmd{},
	RmCmd{},
	LsCmd{},
	CheckCmd{},
	UseCmd{},
	ImportCmd{},
})

Functions

This section is empty.

Types

type CheckCmd

type CheckCmd struct{}

func (CheckCmd) ArgParser

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

func (CheckCmd) CreateMarkdown

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

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

func (CheckCmd) Description

func (cmd CheckCmd) Description() string

Description returns a description of the command

func (CheckCmd) EventType

func (cmd CheckCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (CheckCmd) Exec

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

Exec executes the command

func (CheckCmd) Name

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

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

type ImportCmd struct{}

func (ImportCmd) ArgParser

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

func (ImportCmd) CreateMarkdown

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

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

func (ImportCmd) Description

func (cmd ImportCmd) Description() string

Description returns a description of the command

func (ImportCmd) EventType

func (cmd ImportCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (ImportCmd) Exec

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

Exec executes the command

func (ImportCmd) Name

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

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

type LsCmd struct{}

func (LsCmd) ArgParser

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

func (LsCmd) CreateMarkdown

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

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

func (LsCmd) Description

func (cmd LsCmd) Description() string

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

func (LsCmd) Exec

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

Exec executes the command

func (LsCmd) Name

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

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

type NewCmd struct{}

func (NewCmd) ArgParser

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

func (NewCmd) CreateMarkdown

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

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

func (NewCmd) Description

func (cmd NewCmd) Description() string

Description returns a description of the command

func (NewCmd) EventType

func (cmd NewCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (NewCmd) Exec

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

Exec executes the command

func (NewCmd) Name

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

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

type RmCmd struct{}

func (RmCmd) ArgParser

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

func (RmCmd) CreateMarkdown

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

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

func (RmCmd) Description

func (cmd RmCmd) Description() string

Description returns a description of the command

func (RmCmd) EventType

func (cmd RmCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (RmCmd) Exec

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

Exec executes the command

func (RmCmd) Name

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

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

type UseCmd struct{}

func (UseCmd) ArgParser

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

func (UseCmd) CreateMarkdown

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

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

func (UseCmd) Description

func (cmd UseCmd) Description() string

Description returns a description of the command

func (UseCmd) EventType

func (cmd UseCmd) EventType() eventsapi.ClientEventType

EventType returns the type of the event to log

func (UseCmd) Exec

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

Exec executes the command

func (UseCmd) Name

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

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

Jump to

Keyboard shortcuts

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