command

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandTypeScript      = "script"
	CommandTypeInlinedPack = "inlined_pack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(ctx context.Context, app *application.Application, props *Properties)
}

type CommandEntity

type CommandEntity struct {
	Command    Command
	Properties *Properties
}

func NewEntity

func NewEntity(properties *Properties, command Command) *CommandEntity

type Properties

type Properties struct {
	Name        string
	Description string
	Alias       string
	Environment map[string]string
}

func NewProperties

func NewProperties(name string, description string, alias string, env map[string]string) *Properties

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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