Merge pull request #588 from chrisallenlane/bare-tag

feat: implement `cheat -t` shorthand
This commit is contained in:
Chris Allen Lane 2020-09-05 09:05:09 -04:00 committed by GitHub
commit 82e1c27494
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ import (
"github.com/cheat/cheat/internal/installer"
)
const version = "4.0.3"
const version = "4.1.0"
func main() {
@ -185,6 +185,9 @@ func main() {
case opts["<cheatsheet>"] != nil:
cmd = cmdView
case opts["--tag"] != nil && opts["--tag"].(string) != "":
cmd = cmdList
default:
fmt.Println(usage())
os.Exit(0)