MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / output_json

Method output_json

atomic-cli/src/commands/org/list.rs:102–108  ·  view source on GitHub ↗
(&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() {

Callers 1

executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected