alias

package
v0.0.0-...-d5d086f Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LineFilter = func(ctx context.Context, s string) string { return s }
View Source
var Table ignoreCaseSorted.Dictionary[callableT]

Table is the ALL ALIAS table !

Functions

func AllNames

func AllNames(ctx context.Context) ([]completion.Element, error)

AllNames returns all-alias names for completion

func ExpandMacro

func ExpandMacro(base string, args []string, rawargs []string) string

func Init

func Init()

Init is the package initializer which inserts hook-function into shell package.

Types

type Func

type Func struct {
	BaseStr string
}

Func is the type for string-type alias. It has a Call method

func New

func New(baseStr string) *Func

New is the constructor for Func

func (*Func) Call

func (f *Func) Call(ctx context.Context, cmd *shell.Cmd) (next int, err error)

Call is the method to support callableT and it calls the alias-function.

func (*Func) String

func (f *Func) String() string

String is the method to support fmt.Stringer

Jump to

Keyboard shortcuts

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