pub fn with_stdin_support<F>(file: &Path, f: F) -> Result<(), CliError>Expand description
Run a command with stdin pipe support and directory resolution.
- If
fileis-, buffer stdin to a tempfile. - If
fileis a directory, resolve to the model file inside it (e.g.,model.safetensors,*.gguf,*.apr). - Otherwise pass the path through.