scripts

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: 67 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init registers all needing API

func IsExternalScriptExists

func IsExternalScriptExists(path string) bool

IsExternalScriptExists returns true if external scripts already exists in storage

func ProcessCommand

func ProcessCommand(bid uint32, cmd string) error

ProcessCommand processes and executes alias

func Rebuild

func Rebuild() error

Rebuild rebuilds script's storage

func RegisterExternalByPath

func RegisterExternalByPath(path string) error

RegisterExternalByPath registers external script by path

func ReloadExternalByPath

func ReloadExternalByPath(path string) error

ReloadExternalByPath reloads content of script by path

func RemoveExternalByPath

func RemoveExternalByPath(path string) error

RemoveExternalByPath removes external script by pass and rebuild script's storage

Types

type Script

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

func GetScripts

func GetScripts() []*Script

GetScripts returns list of registered external scripts

func (*Script) GetAddedAt

func (s *Script) GetAddedAt() time.Time

func (*Script) GetPath

func (s *Script) GetPath() string

func (*Script) GetTree

func (s *Script) GetTree() antlr.ParseTree

func (*Script) SetAddedAt

func (s *Script) SetAddedAt(t time.Time)

func (*Script) SetPath

func (s *Script) SetPath(data string)

func (*Script) SetTree

func (s *Script) SetTree(t antlr.ParseTree)

Jump to

Keyboard shortcuts

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