commands

package
v0.0.0-...-ace7313 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(commandName string, args ...string) error

ExecuteCommand executes a command by name

func RegisterCommand

func RegisterCommand(commandName string, command Command)

RegisterCommand makes a command available for the CLI

Types

type Command

type Command interface {
	Execute(args ...string) error
}

Command is the interface for a Command

Jump to

Keyboard shortcuts

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