command

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand[T CmdOutput](ctx CmdContext, cmd Command[T]) mo.Result[T]

Types

type CmdContext

type CmdContext interface {
	IsCmdContext()
}

type CmdOutput

type CmdOutput interface {
	IsCmdOutput()
}

type Command

type Command[T CmdOutput] interface {
	Execute(CmdContext) mo.Result[T]
}

Jump to

Keyboard shortcuts

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