fn run_profiles(
root: &AppRoot,
agent: Option<&AgentId>,
json: bool,
) -> Result<i32>Expand description
profiles and bare list and <agent> list (SP5a design §3): the read-only listings. Nothing is
created — run_command has already loaded the configuration (V3 §17) but no root, no config.toml
and no lock is written here — and every outcome exits 0: an empty listing is the answer, not an
error, and unrecognized on-disk entries are a stderr note rather than a failure.