mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Add a debug function to print to parent kitty stdout
This commit is contained in:
@@ -11,9 +11,18 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"kitty/tools/cli"
|
"kitty/tools/cli"
|
||||||
|
"kitty/tools/tty"
|
||||||
"kitty/tools/utils"
|
"kitty/tools/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func debug(args ...interface{}) {
|
||||||
|
tty.DebugPrintln(args...)
|
||||||
|
}
|
||||||
|
|
||||||
|
func debugf(format string, args ...interface{}) {
|
||||||
|
debug(fmt.Sprintf(format, args...))
|
||||||
|
}
|
||||||
|
|
||||||
func json_input_parser(data []byte, shell_state map[string]string) ([][]string, error) {
|
func json_input_parser(data []byte, shell_state map[string]string) ([][]string, error) {
|
||||||
ans := make([][]string, 0, 32)
|
ans := make([][]string, 0, 32)
|
||||||
err := json.Unmarshal(data, &ans)
|
err := json.Unmarshal(data, &ans)
|
||||||
|
|||||||
Reference in New Issue
Block a user