Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ScanOptKeyOnly string = "key-only" ScanOptCountOnly string = "count-only" ScanOptLimit string = "limit" ScanOptStrictPrefix string = "strict-prefix" )
/////////////////// scan options //////////////////////
View Source
var ( DeleteOptWithPrefix string = "prefix-mode" DeleteOptBatchSize string = "batch-size" DeleteOptLimit string = "limit" DeleteOptYes string = "yes" )
////////////// del/delp/delall options ////////////////
View Source
var ( LoadFileOptBatchSize string = "batch-size" LoadFileoptSkipRows string = "skip-rows" )
/////////////// loadcsv options //////////////////////
View Source
var (
BackupOptBatchSize string = "batch-size"
)
/////////////// backup options /////////////////////
View Source
var BackupOptsKeywordList = []string{ BackupOptBatchSize, }
View Source
var DeleteOptsKeywordList = []string{ DeleteOptWithPrefix, DeleteOptBatchSize, DeleteOptLimit, DeleteOptYes, }
View Source
var LoadFileOptsKeywordList = []string{ LoadFileOptBatchSize, LoadFileoptSkipRows, }
View Source
var ScanOptsKeywordList = []string{ ScanOptKeyOnly, ScanOptCountOnly, ScanOptLimit, ScanOptStrictPrefix, }
for completer to work, keyword list
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd interface { // Help is a help message Help() string // LongHelp is a long help message LongHelp() string // Name is the name of the command Name() string // Alias is the alias of the command Alias() []string // Handler is the handler of the command // `ishell` is stored in ctx Handler() func(ctx context.Context) }
Cmd is an abstraction of an interactable command
Click to show internal directories.
Click to hide internal directories.