summaryrefslogtreecommitdiffstats
path: root/pkg/cheatsheet/generate.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cheatsheet/generate.go')
-rw-r--r--pkg/cheatsheet/generate.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkg/cheatsheet/generate.go b/pkg/cheatsheet/generate.go
index 184e84a04..392e9d64d 100644
--- a/pkg/cheatsheet/generate.go
+++ b/pkg/cheatsheet/generate.go
@@ -1,10 +1,12 @@
-// This "script" generates a file called Keybindings_{{.LANG}}.md
-// in current working directory.
+//go:generate go run generator.go
+
+// This "script" generates files called Keybindings_{{.LANG}}.md
+// in the docs/keybindings directory.
//
-// The content of this generated file is a keybindings cheatsheet.
+// The content of these generated files is a keybindings cheatsheet.
//
-// To generate cheatsheet in english run:
-// go run scripts/generate_cheatsheet.go
+// To generate the cheatsheets, run:
+// go generate pkg/cheatsheet/generate.go
package cheatsheet
@@ -42,7 +44,7 @@ type headerWithBindings struct {
}
func CommandToRun() string {
- return "go run scripts/cheatsheet/main.go generate"
+ return "go generate ./..."
}
func GetKeybindingsDir() string {