Skip to content

Commit

Permalink
fix(cli): Use same fn list for repl and script execution (#40)
Browse files Browse the repository at this point in the history
The CLI execution function doesn't use the supplied VRL function list
when executing a script from command line flags but does use that list
when executing in the REPL. This commit ensures both execution models
behave the same.

Ref: LOG-19051
  • Loading branch information
dhable committed Jan 18, 2024
1 parent 371100f commit 362ba4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn run(opts: &Opts, stdlib_functions: Vec<Box<dyn Function>>) -> Result<(), Erro
config: _,
} = compile_with_state(
&source,
&crate::stdlib::all(),
&stdlib_functions,
&state,
CompileConfig::default(),
)
Expand Down

0 comments on commit 362ba4c

Please sign in to comment.