From 21e34ee6d8de08c0db4094e9dfb88d8dda123f86 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 2 Oct 2019 23:00:58 -0400 Subject: [PATCH] Add command type --- types.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 types.go diff --git a/types.go b/types.go new file mode 100644 index 0000000..d385b47 --- /dev/null +++ b/types.go @@ -0,0 +1,9 @@ +package main + +// Command outlines a command +type Command struct { + Cmd []string // Any aliases that trigger this command + Description string // A short description of the command + Help string // The full help text explaining how to use the command + Exec func([]string) // A function that takes the command (arg[0]) and any arguments (arg[1:]) as input +}