summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-02-16 09:44:52 -0700
committertjp <tjp@ctrl-c.club>2024-02-16 09:44:52 -0700
commitb787ef92df3f859b033aa8cded6b1f6dbc7c2be0 (patch)
treee60f8e7d4010559f0579951a993f19240a8f84da /command.go
parent865c6dc23099e129cb3ba9709b2926734144e605 (diff)
lipgloss styles
Diffstat (limited to 'command.go')
-rw-r--r--command.go4
1 files changed, 3 insertions, 1 deletions
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":