core: update pipeline api usage
This commit is contained in:
@@ -50,7 +50,7 @@ static enum bshell_status process_record(
|
||||
|
||||
bshell_runtime_push_scope(rt, p->f_block);
|
||||
bshell_variable *item = bshell_runtime_define_var(rt, "_");
|
||||
bshell_variable_set_value(item, &in);
|
||||
bshell_variable_set_value(item, in);
|
||||
fx_value out = bshell_runtime_eval(rt);
|
||||
bshell_runtime_pop_scope(rt);
|
||||
fx_value_unset(&in);
|
||||
|
||||
@@ -56,11 +56,7 @@ static enum bshell_status process_record(
|
||||
continue;
|
||||
}
|
||||
|
||||
bshell_verb_ref(verb);
|
||||
bshell_pipeline_write_value(
|
||||
pipeline,
|
||||
fx_value_ref_copy_return(v),
|
||||
false);
|
||||
bshell_pipeline_write_value(pipeline, *v, false);
|
||||
break;
|
||||
} while (1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user