cli

package
v0.0.0-...-5ece9d6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(message string, e error)

Print error message

func ExecuteCommand

func ExecuteCommand(name string)

Execute the registered command

func RegisterCommand

func RegisterCommand(name string, fn func(), description string)

Register command to be used in cli

func Run

func Run()

func Success

func Success(message string)

Print success message

func Warning

func Warning(message string)

Print warning message

Types

type Command

type Command struct {
	Fn          func()
	Description string
}

Command represents a CLI command with a description.

Jump to

Keyboard shortcuts

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