completer

package
v0.0.0-...-564e8e8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LongestCommonPrefix

func LongestCommonPrefix(strs []string) (prefix string)

func RangeNumParse

func RangeNumParse(_raw string, do func(uint32)) (err error)

func RegisterCmd

func RegisterCmd(raw []byte)

Types

type CmdLineFields

type CmdLineFields struct {
	// contains filtered or unexported fields
}

TODO: Add struct CmdLineFields

func CmdlineField

func CmdlineField(str string) (fields CmdLineFields)

Split a command line into fields

func (*CmdLineFields) Append

func (f *CmdLineFields) Append(seg CmdLineSeg)

func (*CmdLineFields) Bytes

func (f *CmdLineFields) Bytes() (bytes [][]byte)

func (*CmdLineFields) Count

func (f *CmdLineFields) Count() int

func (CmdLineFields) Strings

func (f CmdLineFields) Strings() (strs []string)

type CmdLineSeg

type CmdLineSeg struct {
	// contains filtered or unexported fields
}

func (*CmdLineSeg) IsQuoted

func (s *CmdLineSeg) IsQuoted() bool

func (*CmdLineSeg) String

func (s *CmdLineSeg) String() string

func (*CmdLineSeg) UnquotString

func (s *CmdLineSeg) UnquotString() string

type Completer

type Completer struct {
	// contains filtered or unexported fields
}

func (*Completer) GetCompletes

func (s *Completer) GetCompletes(input string) (completions []string)

func (*Completer) GetHelps

func (s *Completer) GetHelps(input string) (helpStr string)

func (*Completer) Setup

func (s *Completer) Setup(filePath string) (err error)

Jump to

Keyboard shortcuts

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