commands

package
v0.0.0-...-884dcaa Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkContext     = "work"
	PersonalContext = "personal"
	ProjectsContext = "projects"
)

Variables

This section is empty.

Functions

func RegisterCommand

func RegisterCommand(command Command)

Types

type Command

type Command interface {
	GetInformation() (string, string)
	IsForCommand([]string) bool
	Execute([]string) error
	// contains filtered or unexported methods
}

func GetRegisteredCommands

func GetRegisteredCommands() []Command

Jump to

Keyboard shortcuts

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