Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/effectcraft-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const USAGE: &str = "usage: effectcraft-cli <info|commands|exec|run|props|get|se
[--automation-read-root DIR] [--automation-write-root DIR]
confine the agent's file access: reads under a read or write root,
writes under a write root (each repeatable); scripts are refused
options: --project F.ecproj | --demo | --empty --save | --save-as F --bridge PORT --json --gpu
options: --project F.ecproj | --demo | --empty --save | --save-as F --bridge PORT --json --gpu --exp-input-cache
<comp>: id or name, '-' = active comp; <layer>: id, '#n' or name; <value>: JSON or bare string";

/// Options that take a value.
Expand Down Expand Up @@ -178,6 +178,7 @@ const FLAGS: &[&str] = &[
"--demo",
"--empty",
"--gpu",
"--exp-input-cache",
"--list",
"--schemas",
"--enabled",
Expand Down Expand Up @@ -277,6 +278,11 @@ fn main() {
Ok(a) => a,
Err(e) => fail_usage(&e),
};
if args.flag("--exp-input-cache")
|| std::env::var("EFFECTCRAFT_EXP_INPUT_CACHE").is_ok_and(|v| matches!(v.trim().to_ascii_lowercase().as_str(), "1" | "true" | "on" | "yes"))
{
effectcraft_render::cache::set_input_cache(true);
}
let json_out = args.flag("--json");
if args.pos.is_empty() {
fail_usage("missing subcommand");
Expand Down
Loading