main.go 440 B

12345678910111213141516171819202122232425262728
  1. // License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
  2. package show_key
  3. import (
  4. "fmt"
  5. "kitty/tools/cli"
  6. )
  7. var _ = fmt.Print
  8. func main(cmd *cli.Command, opts *Options, args []string) (rc int, err error) {
  9. if opts.KeyMode == "kitty" {
  10. err = run_kitty_loop(opts)
  11. } else {
  12. err = run_legacy_loop(opts)
  13. }
  14. if err != nil {
  15. rc = 1
  16. }
  17. return
  18. }
  19. func EntryPoint(parent *cli.Command) {
  20. create_cmd(parent, main)
  21. }