Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandFuncs = map[DarknessCommand]func(){ `-h`: HelpCommandFunc, `help`: HelpCommandFunc, `-help`: HelpCommandFunc, `--help`: HelpCommandFunc, // contains filtered or unexported fields }
CommandFuncs maps supplied darkness command to the function that needs to get executed.
Functions ¶
func AquaCommandFunc ¶
func AquaCommandFunc()
func CleanCommandFunc ¶
func CleanCommandFunc()
CleanCommandFunc cleans the files like `megumin` but without any output (except for errors).
func GetDarknessFunc ¶
func GetDarknessFunc(command string) func()
GetDarknessFunc returns Darkness function to run by the command supplied, `nil` otherwise.
func HelpCommandFunc ¶
func HelpCommandFunc()
HelpCommandFunc shows default darkness HelpCommandFunc message
func LalatinaCommandFunc ¶
func LalatinaCommandFunc()
func MisaCommandFunc ¶
func MisaCommandFunc()
MisaCommandFunc will support many different tools that darkness can support, such as creating gallery previews, etc. WIP.
func ServeCommandFunc ¶
func ServeCommandFunc()
ServeCommandFunc builds the website, local serves it on 8080 and then cleans the files.
Types ¶
type DarknessCommand ¶
type DarknessCommand string
DarknessCommand is a type to enforce input typing.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.