From b787ef92df3f859b033aa8cded6b1f6dbc7c2be0 Mon Sep 17 00:00:00 2001 From: tjp Date: Fri, 16 Feb 2024 09:44:52 -0700 Subject: lipgloss styles --- command.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'command.go') diff --git a/command.go b/command.go index e231c7a..1dfe13f 100644 --- a/command.go +++ b/command.go @@ -20,7 +20,7 @@ type Command struct { func ParseCommand(line string) (*Command, error) { line = strings.TrimSpace(line) if line == "" { - return &Command{Name: "print"}, nil + return &Command{Name: "default"}, nil } cmd, rest, _ := strings.Cut(line, " ") @@ -404,6 +404,8 @@ func RunCommand(cmd *Command, state *BrowserState) error { return Outline(state) case "pipe": return Pipe(state, cmd.Args[0]) + case "default": + return HandleResource(state) case "print": return Print(state) case "links": -- cgit v1.2.3