aliases

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Aliases = make(map[string]*Alias)

storage of all aliases

Functions

func Clear

func Clear()

Clear reset storage with aliases

func IsAliasExist

func IsAliasExist(n string) bool

IsAliasExist returns true if alias exists in storage

Types

type Alias

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

func (*Alias) GetClosure

func (a *Alias) GetClosure() *object.RuntimeFunc

func (*Alias) GetDescription

func (a *Alias) GetDescription() string

func (*Alias) GetUsage

func (a *Alias) GetUsage() string

func (*Alias) GetVisible

func (a *Alias) GetVisible() bool

func (*Alias) SetClosure

func (a *Alias) SetClosure(closure *object.RuntimeFunc)

func (*Alias) SetDescription

func (a *Alias) SetDescription(description string)

func (*Alias) SetUsage

func (a *Alias) SetUsage(usage string)

func (*Alias) SetVisible

func (a *Alias) SetVisible(flag bool)

Jump to

Keyboard shortcuts

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