functions

package
v0.0.0-...-3955564 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommands

func GetCommands() map[string]cliCommand

store all commands here

func NameAndArg

func NameAndArg(input string) (commandName, argument string)

helper function that returns a command & its argument this assumes that the command only has one argument

func Welcome

func Welcome(commands map[string]cliCommand) error

Welcome command that will also be used as the help command

Types

type Config

type Config struct {
	Next     string
	Previous string
}

Jump to

Keyboard shortcuts

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