Add a debug function to print to parent kitty stdout
This commit is contained in:
parent
266e51310c
commit
a7c997c6ef
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user