mirror of
https://github.com/cheat/cheat.git
synced 2024-11-21 21:41:35 +01:00
Merge pull request #588 from chrisallenlane/bare-tag
feat: implement `cheat -t` shorthand
This commit is contained in:
commit
82e1c27494
@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/cheat/cheat/internal/installer"
|
"github.com/cheat/cheat/internal/installer"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "4.0.3"
|
const version = "4.1.0"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
@ -185,6 +185,9 @@ func main() {
|
|||||||
case opts["<cheatsheet>"] != nil:
|
case opts["<cheatsheet>"] != nil:
|
||||||
cmd = cmdView
|
cmd = cmdView
|
||||||
|
|
||||||
|
case opts["--tag"] != nil && opts["--tag"].(string) != "":
|
||||||
|
cmd = cmdList
|
||||||
|
|
||||||
default:
|
default:
|
||||||
fmt.Println(usage())
|
fmt.Println(usage())
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user