Method
output_json
(&self, orgs: &[atomic_teams::MyOrgInfo])
Source from the content-addressed store, hash-verified
| 100 | } |
| 101 | |
| 102 | fn output_json(&self, orgs: &[atomic_teams::MyOrgInfo]) -> CliResult<()> { |
| 103 | let json = serde_json::to_string_pretty(orgs).map_err(|e| { |
| 104 | CliError::Internal(anyhow::anyhow!("Failed to serialize org list: {e}")) |
| 105 | })?; |
| 106 | println!("{json}"); |
| 107 | Ok(()) |
| 108 | } |
| 109 | |
| 110 | fn output_table(&self, orgs: &[atomic_teams::MyOrgInfo]) { |
| 111 | if orgs.is_empty() { |
Tested by
no test coverage detected