1
1
mirror of https://github.com/wader/fq.git synced 2024-12-29 00:22:38 +03:00
fq/pkg/interp/testdata/completion.fqtest
Mattias Wadman 3dd2c61d3c interp: Fix input completion regression in sub-REPLs
readline Config was used to pass completer function per readline call,
was changed in #612 and caused regression. Now use our own member in
stdOS to pass it instead.

Add a test but test script completer is implemented differently.
2023-03-10 13:57:21 +01:00

76 lines
824 B
Plaintext

$ fq -i
null> he\t
help
hevc_annexb
hevc_au
hevc_dcr
hevc_nalu
hevc_pps
hevc_sps
hevc_vps
hex
hexdump
null> _is_ide\t
_is_ident
null> {aa: 123} | slurp("test")
null> $\t
$ENV
$test
null> $test[].a\t
aa
null> {bb: 123} as $aa | $aa.b\t
bb
null> {aa: 123, ab: "a"} | .a\t
aa
ab
null> {a: {aa: 123, ab: "a"}} | .a.a\t
aa
ab
null> {aa: 123, ab: "a"} | repl
> object> .a\t
aa
ab
> object> ^D
null> ^D
$ fq -i . test.mp3
mp3> .f\t
footers
frames
mp3> ._\t
_actual
_bits
_buffer_root
_bytes
_description
_error
_format
_format_root
_gap
_len
_name
_out
_parent
_path
_root
_start
_stop
_sym
mp3> .frames\t
frames[]
mp3> .frames[]\t
.
mp3> "abc" | tobitsrange.s\t
size
start
stop
mp3> options.c\t
color
colors
compact
completion_timeout
mp3> .frames[0] | repl
> .frames[0] mp3_frame> .he\t
header
> .frames[0] mp3_frame> ^D
mp3> ^D