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

Method print_json_format

atomic-cli/src/commands/status.rs:624–634  ·  view source on GitHub ↗

Print a stable, versioned status document for editor integrations.

(
        &self,
        status: &RepositoryStatus,
        repo_root: &std::path::Path,
    )

Source from the content-addressed store, hash-verified

622
623 /// Print a stable, versioned status document for editor integrations.
624 fn print_json_format(
625 &self,
626 status: &RepositoryStatus,
627 repo_root: &std::path::Path,
628 ) -> CliResult<()> {
629 let output = JsonStatus::new(status, repo_root);
630 let json = serde_json::to_string_pretty(&output)
631 .map_err(|error| CliError::Internal(error.into()))?;
632 println!("{}", json);
633 Ok(())
634 }
635}
636
637impl Default for Status {

Callers 2

render_service_statusMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected