Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const CGTypeCommand + const CGTypeCommandMeta + const CGTypeDir + const CGTypeFile + const CGTypeGlobalCmd + const CGTypeMeta + const CGTypeRemote + const CGTypeRemoteInstance + const CGTypeVariable + const MaxCompQuoteLen + const QuoteTypeANSI + const QuoteTypeDQ + const QuoteTypeLiteral + const QuoteTypeSQ + var SimpleCompGenFns map[string]SimpleCompGenFnType + func RegisterSimpleCompFn(compType string, fn SimpleCompGenFnType) + func SortCompReturnEntries(c *CompReturn) + type CompContext struct + Cwd string + ForDisplay bool + RemotePtr *sstore.RemotePtrType + type CompEntry struct + IsMetaCmd bool + Word string + type CompPoint struct + CompWord int + CompWordPos int + Prefix string + StmtStr string + Suffix string + Words []ParsedWord + func ParseCompPoint(cmdStr utilfn.StrWithPos) *CompPoint + func (p *CompPoint) FullyExtend(crtn *CompReturn) utilfn.StrWithPos + type CompReturn struct + CompType string + Entries []CompEntry + HasMore bool + func CombineCompReturn(compType string, c1 *CompReturn, c2 *CompReturn) *CompReturn + func DoCompGen(ctx context.Context, cmdStr utilfn.StrWithPos, compCtx CompContext) (*CompReturn, *utilfn.StrWithPos, error) + func DoCompGenOld(ctx context.Context, sp utilfn.StrWithPos, compCtx CompContext) (*CompReturn, *utilfn.StrWithPos, error) + func DoSimpleComp(ctx context.Context, compType string, prefix string, compCtx CompContext, ...) (*CompReturn, error) + func (c *CompReturn) GetCompDisplayStrs() []string + func (c *CompReturn) GetCompStrs() []string + type ParsedWord struct + Offset int + PartialWord string + Prefix string + Word *syntax.Word + type SimpleCompGenFnType = func(ctx context.Context, prefix string, compCtx CompContext, args []interface{}) (*CompReturn, error)