mal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ManifestFileName = "mal.yaml"
)

Functions

func Commands

func Commands(con *repl.Console) []*cobra.Command

func InstallFromDir

func InstallFromDir(extLocalPath string, promptToOverwrite bool, con *repl.Console)

func ListMalManiFest

func ListMalManiFest(con *repl.Console)

func LoadMalManiFest

func LoadMalManiFest(con *repl.Console, filename string) (*plugin.MalManiFest, error)

func MalInstallCmd

func MalInstallCmd(cmd *cobra.Command, con *repl.Console)

ExtensionsInstallCmd - Install an extension

func MalLoadCmd

func MalLoadCmd(ctx *cobra.Command, con *repl.Console)

func ParseMalManifest

func ParseMalManifest(data []byte) (*plugin.MalManiFest, error)

func RemoveMal

func RemoveMal(name string, con *repl.Console) error

func RemoveMalCmd

func RemoveMalCmd(cmd *cobra.Command, con *repl.Console)

Types

type LoadedMal

type LoadedMal struct {
	Manifest *plugin.MalManiFest
	CMDs     []*cobra.Command
	Plugin   *plugin.Plugin
}

func LoadMal

func LoadMal(con *repl.Console, filename string) (*LoadedMal, error)

Jump to

Keyboard shortcuts

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