Help us shape the future of Go! Take the 2026 Go Developer Survey

console

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Actions

func Actions(registry Registry, cfg Config) []action.AnyAction

Types

type ActionItem

type ActionItem struct {
	Name        string   `json:"name"`
	Description string   `json:"description,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Scope       string   `json:"scope,omitempty"`
}

type Config

type Config struct {
	Title        string
	BasePath     string
	AllowExecute bool
}

type Registry

type Registry interface {
	Actions() []action.AnyAction
}

type RegistryFunc

type RegistryFunc func() []action.AnyAction

func (RegistryFunc) Actions

func (f RegistryFunc) Actions() []action.AnyAction

Jump to

Keyboard shortcuts

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