diff options
| author | tjp <tjp@ctrl-c.club> | 2024-02-16 09:44:52 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-02-16 09:44:52 -0700 |
| commit | b787ef92df3f859b033aa8cded6b1f6dbc7c2be0 (patch) | |
| tree | e60f8e7d4010559f0579951a993f19240a8f84da /command.go | |
| parent | 865c6dc23099e129cb3ba9709b2926734144e605 (diff) | |
lipgloss styles
Diffstat (limited to 'command.go')
| -rw-r--r-- | command.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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": |
