mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 16:28:19 +02:00
Start work on width testing kitten
This commit is contained in:
25
tools/cli/wcswidth_kitten.go
Normal file
25
tools/cli/wcswidth_kitten.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
||||
func main() (rc int, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func WcswidthKittenEntryPoint(root *Command) {
|
||||
root.AddSubCommand(&Command{
|
||||
Name: "__width_test__",
|
||||
Hidden: true,
|
||||
OnlyArgsAllowed: true,
|
||||
Run: func(cmd *Command, args []string) (rc int, err error) {
|
||||
if len(args) != 0 {
|
||||
return 1, fmt.Errorf("Usage: __width_test__")
|
||||
}
|
||||
return main()
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user