script

package
v1.18.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"example",
	"Example module",

	cell.Provide(
		New,
		ExampleCommands,
	),
)

Cell defines our example module that provides the Example object and script commands to interact with it.

Functions

func ExampleCommands

func ExampleCommands(e *Example) hive.ScriptCmdsOut

Types

type Example

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

func New

func New(log *slog.Logger) *Example

func (*Example) SayHello

func (e *Example) SayHello(name, greeting string) string

Jump to

Keyboard shortcuts

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