Skip to content

Commit

Permalink
feat: restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Oct 25, 2023
1 parent 1aeaf57 commit f8d1ba0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ func main() {
return
}

// use pager env var if possible
pager := os.Getenv("PAGER")
if pager == "" {
pager = "less" // FIXME: pick a very common pager, maybe "more"
pager = "less"
}

// TODO: impl later
if *topic == "" && *query != "" {
log.Fatalf("Error, query but no language: %s", err)
}
// there is a topic and no query

// if there are args we wanna process them
if *topic != "" {
url := "cht.sh/%s"

Expand Down

0 comments on commit f8d1ba0

Please sign in to comment.