Browse Source

1.0.30 (#234)

* bump version

* work if name is set in switch but don't showBoosts and showReplies
toml 1.0.30
Rasmus Lindroth 3 years ago committed by GitHub
parent
commit
71901d1cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      main.go
  2. 2
      ui/commands.go

2
main.go

@ -8,7 +8,7 @@ import (
"github.com/rivo/tview"
)
const version = "1.0.29"
const version = "1.0.30"
func main() {
util.SetTerminalTitle("tut")

2
ui/commands.go

@ -194,7 +194,7 @@ func (tv *TutView) SwitchCommand(s string) {
showReplies = parts[len(parts)-1] == "true"
} else if len(parts) > 1 && slices.Contains(tfStr, parts[len(parts)-1]) {
showBoosts = parts[len(parts)-1] == "true"
} else {
} else if name == "" {
fmt.Printf("switch is invalid . Check this for errors: switch %s\n", s)
os.Exit(1)
}

Loading…
Cancel
Save