difftreelog
fix do not force format in --exec
in: master
1 file changed
cmds/jrsonnet/src/main.rsdiffbeforeafterboth1use clap::{AppSettings, Clap, IntoApp};1use clap::{AppSettings, Clap, IntoApp};2use jrsonnet_cli::{ConfigureState, GcOpts, GeneralOpts, InputOpts, ManifestOpts, OutputOpts};2use jrsonnet_cli::{ConfigureState, GcOpts, GeneralOpts, InputOpts, ManifestOpts, OutputOpts};3use jrsonnet_evaluator::{error::LocError, EvaluationState, ManifestFormat};3use jrsonnet_evaluator::{error::LocError, EvaluationState};4use std::{4use std::{5 fs::{create_dir_all, File},5 fs::{create_dir_all, File},6 io::Read,6 io::Read,135 opts.manifest.configure(&state)?;135 opts.manifest.configure(&state)?;136136137 let val = if opts.input.exec {137 let val = if opts.input.exec {138 state.set_manifest_format(ManifestFormat::ToString);139 state.evaluate_snippet_raw(138 state.evaluate_snippet_raw(140 PathBuf::from("args").into(),139 PathBuf::from("args").into(),141 (&opts.input.input as &str).into(),140 (&opts.input.input as &str).into(),