From 1eec3cbbc2da95e116e70ab3911766886e499988 Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 3 Jan 2024 19:05:21 -0700 Subject: about, and unlicense --- command.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'command.go') diff --git a/command.go b/command.go index 5862a57..ea7ee7c 100644 --- a/command.go +++ b/command.go @@ -26,6 +26,10 @@ func ParseCommand(line string) (*Command, error) { cmd, rest, _ := strings.Cut(line, " ") switch line[0] { + case 'a': + if strings.HasPrefix("about", cmd) { + return &Command{Name: "about"}, nil + } case 'r': if strings.HasPrefix("root", cmd) { return &Command{Name: "root"}, nil @@ -257,6 +261,8 @@ func parseTourArgs(line string) ([]string, error) { func RunCommand(conf *Config, cmd *Command, state *BrowserState) error { switch cmd.Name { + case "about": + return About(state) case "root": return Root(state, true, conf) case "Root": -- cgit v1.2.3