summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
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":