Start on testing infra for command to JSON serialization

This commit is contained in:
Kovid Goyal
2022-08-17 22:37:03 +05:30
parent 47feb73cdf
commit 417c8887b9
5 changed files with 57 additions and 7 deletions

View File

@@ -19,6 +19,8 @@ import (
"kitty/tools/utils"
)
var ProtocolVersion [3]int = [3]int{0, 20, 0}
func add_bool_set(cmd *cobra.Command, name string, short string, usage string) *bool {
if short == "" {
return cmd.Flags().Bool(name, false, usage)