mirror of
https://github.com/cheat/cheat.git
synced 2025-09-04 11:08:29 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
82e1c27494 | |||
45beeb2edb | |||
c2c479b36c | |||
cb0243e7fc | |||
e5d04d41ea | |||
2474ea4fb1 |
@ -98,7 +98,7 @@ install the community-sourced cheatsheets the first time you run `cheat`.
|
|||||||
Cheatpaths
|
Cheatpaths
|
||||||
----------
|
----------
|
||||||
Cheatsheets are stored on "cheatpaths", which are directories that contain
|
Cheatsheets are stored on "cheatpaths", which are directories that contain
|
||||||
cheetsheets. Cheatpaths are specified in the `conf.yml` file.
|
cheatsheets. Cheatpaths are specified in the `conf.yml` file.
|
||||||
|
|
||||||
It can be useful to configure `cheat` against multiple cheatpaths. A common
|
It can be useful to configure `cheat` against multiple cheatpaths. A common
|
||||||
pattern is to store cheatsheets from multiple repositories on individual
|
pattern is to store cheatsheets from multiple repositories on individual
|
||||||
|
@ -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)
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/cheat/cheat/internal/sheet"
|
"github.com/cheat/cheat/internal/sheet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestTags asserts that cheetsheet tags are properly returned
|
// TestTags asserts that cheatsheet tags are properly returned
|
||||||
func TestTags(t *testing.T) {
|
func TestTags(t *testing.T) {
|
||||||
|
|
||||||
// mock cheatsheets available on multiple cheatpaths
|
// mock cheatsheets available on multiple cheatpaths
|
||||||
|
Reference in New Issue
Block a user