Finish porting clipboard kitten to Go

This commit is contained in:
Kovid Goyal
2022-11-26 15:15:30 +05:30
parent 63a08dc6cc
commit a721ffeb7d
5 changed files with 245 additions and 5 deletions

View File

@@ -4,13 +4,16 @@ package clipboard
import (
"fmt"
"kitty/tools/cli"
)
var _ = fmt.Print
func clipboard_main(cmd *cli.Command, opts *Options, args []string) (rc int, err error) {
if len(args) > 0 {
return 1, fmt.Errorf("Unrecognized extra command line arguments")
}
func clipboard_main(cmd *cli.Command, args []string) (int, error) {
return 0, nil
return 0, run_plain_text_loop(opts)
}
func EntryPoint(parent *cli.Command) {