diff options
Diffstat (limited to 'command.go')
| -rw-r--r-- | command.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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": |
