1
1
mirror of https://github.com/wader/fq.git synced 2024-12-02 12:45:53 +03:00
fq/pkg/interp/testdata/debug.fqtest

44 lines
574 B
Plaintext
Raw Normal View History

2021-08-28 21:07:57 +03:00
$ fq -i
null> {a: 123, b: []} | debug
{
"a": 123,
"b": []
}
null> {a: 123, b: []} | debug({a})
{
"a": 123,
"b": []
}
null> ^D
stderr:
["DEBUG",{"a":123,"b":[]}]
["DEBUG",{"a":123}]
$ fq -n 'null, {a:1}, "abc" | ., "\n" | print'
null
{"a":1}
abc
$ fq -n 'null, {a:1}, "abc" | println'
null
{"a":1}
abc
$ fq -n 'null, {a:1}, "abc" | ., "\n" | printerr'
stderr:
null
{"a":1}
abc
$ fq -n 'null, {a:1}, "abc" | printerrln'
stderr:
null
{"a":1}
abc
$ fq -n 'null, {a:1}, "abc" | ., "\n" | stderr'
null
"\n"
{
"a": 1
}
"\n"
"abc"
"\n"
stderr:
null"\n"{"a":1}"\n""abc""\n"