mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Start work on width testing kitten
This commit is contained in:
parent
5798d29609
commit
cf6bb29ef7
3 changed files with 27 additions and 2 deletions
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()
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue