pub fn run_render_stdout(
profiles: &[String],
separator: Option<&str>,
pre_prompt: Option<&str>,
post_prompt: Option<&str>,
config_override: Option<&Path>,
json: bool,
) -> Result<(), String>Expand description
Render one or more profiles to stdout.
Convenience function that reads configuration and renders the specified profiles to standard output with optional separator, pre-prompt, and post-prompt. When multiple profiles are provided, files are deduplicated across all profiles.
§Arguments
profiles- Profile names to render (deduplicated in order)separator- Optional separator between filespre_prompt- Optional custom pre-prompt textpost_prompt- Optional custom post-prompt textconfig_override- Optional configuration file overridejson- Whether to output in JSON format
§Returns
Ok(())- Profiles rendered successfullyErr(String)- Rendering failed
§Errors
Returns an error if:
- Configuration file cannot be read or parsed
- Profile resolution fails
- Writing to stdout fails