mal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

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

func InstallFromDir

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

func InstallMal added in v0.1.0

func InstallMal(tableModel *tui.TableModel, writer io.Writer, malHttpConfig m.MalHTTPConfig, con *repl.Console) func()

func ListMalManifest added in v0.0.3

func ListMalManifest(con *repl.Console)

func MalCmd added in v0.0.3

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

func MalInstallCmd

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

ExtensionsInstallCmd - Install an extension

func MalLoadCmd

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

func RefreshMalCmd added in v0.0.3

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

func RemoveMal

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

func RemoveMalCmd

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

Types

type LoadedMal

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

func LoadMal

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

func LoadMalWithManifest added in v0.0.3

func LoadMalWithManifest(con *repl.Console, rootCmd *cobra.Command, manifest *plugin.MalManiFest) (*LoadedMal, error)

Jump to

Keyboard shortcuts

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