cmd

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewFileCached

func NewFileCached(config *config.AppConfig, content string) (string, error)

func RunEditor

func RunEditor(ctx context.Context, editor, filePath string, subCommands ...string) error

func SearchKeyByPattern added in v2.1.0

func SearchKeyByPattern(pattern string, data *data.Buffer) string

func SearchKeyTagsByPattern added in v2.1.0

func SearchKeyTagsByPattern(pattern string, data *data.Buffer) []string

Types

type CatCmd added in v2.1.0

type CatCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func BuildCat added in v2.1.0

func BuildCat(data *data.Buffer) CatCmd

func (CatCmd) Main added in v2.1.0

func (c CatCmd) Main() scriptor

type LsCmd added in v2.1.0

type LsCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func BuildLs

func BuildLs(config *config.AppConfig, data *data.Buffer) LsCmd

func (*LsCmd) Main added in v2.1.0

func (c *LsCmd) Main() scriptor

type ModCmd added in v2.1.0

type ModCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func BuildMod

func BuildMod(config *config.AppConfig, data *data.Buffer) ModCmd

func (*ModCmd) Main added in v2.1.0

func (e *ModCmd) Main() scriptor

type NewCmd added in v2.1.0

type NewCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func BuildNew

func BuildNew(config *config.AppConfig, data *data.Buffer) NewCmd

func (*NewCmd) Main added in v2.1.0

func (n *NewCmd) Main() scriptor

type RmCmd added in v2.1.0

type RmCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func BuildRm

func BuildRm(config *config.AppConfig, data *data.Buffer) RmCmd

func (RmCmd) Main added in v2.1.0

func (r RmCmd) Main() scriptor

type TagCmd added in v2.1.0

type TagCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func BuildTag

func BuildTag(config *config.AppConfig, data *data.Buffer) TagCmd

func (*TagCmd) Main added in v2.1.0

func (c *TagCmd) Main() scriptor

type VersionCmd added in v2.1.0

type VersionCmd struct {
	*cobra.Command
}

func BuildVersion added in v2.1.0

func BuildVersion() VersionCmd

Jump to

Keyboard shortcuts

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