cli

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 21 Imported by: 2

README

extism CLI

The Extism CLI can be used to execute Extism plugins and manage libextism installations.

Installation

$ go install github.com/extism/cli/extism
Call a plugin

The following will call the count_vowels function in the count-vowels.wasm module with the input "qwertyuiop":

$ extism call count-vowels.wasm count_vowels --input qwertyuiop

See extism call --help for a list of all the flags

Listing libextism versions

To list the available libextism versions:

$ extism lib versions
Install libextism

To install the latest version of libextism to /usr/local, this will overwrite any existing installation at the same path:

$ sudo extism lib install

To build the latest build from github:

$ extism lib install --version git
Uninstall libextism

To uninstall the shared object and header installed in /usr/local:

$ sudo extism lib uninstall

Or from another prefix:

$ extism lib uninstall --prefix ~/.local
Check a libextism installation

The lib check command will print the version of the installed libextism library:

$ extism lib check

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GithubToken = ""
View Source
var LoggingEnabled = false
View Source
var PrintingDisabled = false

Functions

func CallCmd

func CallCmd() *cobra.Command

func LibCmd

func LibCmd() *cobra.Command

func Log

func Log(s ...any)

func Print

func Print(s ...any)

Types

type Args

type Args interface {
	SetArgs(args []string)
}

Directories

Path Synopsis
extism-dev module

Jump to

Keyboard shortcuts

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