mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-24 00:18:39 +00:00
mapper tee UTs
This commit is contained in:
parent
6b44f39370
commit
b97e4e49b5
2 changed files with 18 additions and 18 deletions
|
|
@ -32,7 +32,7 @@ mapper_setup_t mapper_tee_setup = {
|
|||
// ----------------------------------------------------------------
|
||||
static mapper_t* mapper_tee_parse_cli(int* pargi, int argc, char** argv) {
|
||||
int do_append = FALSE;
|
||||
int flush_every_record = FALSE;
|
||||
int flush_every_record = TRUE;
|
||||
|
||||
if ((argc - *pargi) < 1) {
|
||||
mapper_tee_usage(stderr, argv[0], argv[*pargi]);
|
||||
|
|
@ -42,8 +42,8 @@ static mapper_t* mapper_tee_parse_cli(int* pargi, int argc, char** argv) {
|
|||
*pargi += 1;
|
||||
|
||||
ap_state_t* pstate = ap_alloc();
|
||||
ap_define_true_flag(pstate, "-a", &do_append);
|
||||
ap_define_true_flag(pstate, "-f", &flush_every_record);
|
||||
ap_define_true_flag(pstate, "-a", &do_append);
|
||||
ap_define_false_flag(pstate, "--no-fflush", &flush_every_record);
|
||||
|
||||
if (!ap_parse(pstate, verb, pargi, argc, argv)) {
|
||||
mapper_tee_usage(stderr, argv[0], verb);
|
||||
|
|
|
|||
|
|
@ -3426,21 +3426,21 @@ run_mlr --from $indir/abixy-wide --opprint put -q '
|
|||
}
|
||||
'
|
||||
|
||||
## ----------------------------------------------------------------
|
||||
#announce MAPPER TEE
|
||||
#
|
||||
#tee1=$reloutdir/tee1
|
||||
#mkdir -p $tee1
|
||||
#
|
||||
#run_mlr --from $indir/abixy tee $tee1/out then nothing
|
||||
#run_mlr cat -n $tee1/out
|
||||
#
|
||||
#run_mlr --from $indir/abixy tee $tee1/out then nothing
|
||||
#run_mlr cat -n $tee1/out
|
||||
#
|
||||
#run_mlr --from $indir/abixy tee -a $tee1/out then nothing
|
||||
#run_mlr cat -n $tee1/out
|
||||
#
|
||||
# ----------------------------------------------------------------
|
||||
announce MAPPER TEE
|
||||
|
||||
tee1=$reloutdir/tee1
|
||||
mkdir -p $tee1
|
||||
|
||||
run_mlr --from $indir/abixy tee $tee1/out then nothing
|
||||
run_mlr cat -n $tee1/out
|
||||
|
||||
run_mlr --from $indir/abixy tee --no-fflush $tee1/out then nothing
|
||||
run_mlr cat -n $tee1/out
|
||||
|
||||
run_mlr --from $indir/abixy tee -a $tee1/out then nothing
|
||||
run_mlr cat -n $tee1/out
|
||||
|
||||
## ----------------------------------------------------------------
|
||||
#announce DSL TEE
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue