summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'command.go')
-rw-r--r--command.go6
1 files changed, 6 insertions, 0 deletions
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":