cmd

package
v0.0.0-...-b7a4fd5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands []Command

Functions

func AddCommand

func AddCommand(cmd Command)

Shorthand for “Commands = append(Commands, cmd)“

func HelpCommand

func HelpCommand()

Help command

func RunCommand

func RunCommand()

Types

type Command

type Command struct {
	Name        string
	Description string
	Run         func()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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