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

Method print_json_format

atomic-cli/src/commands/status.rs:434–444  ·  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

432
433 /// Print a stable, versioned status document for editor integrations.
434 fn print_json_format(
435 &self,
436 status: &RepositoryStatus,
437 repo_root: &std::path::Path,
438 ) -> CliResult<()> {
439 let output = JsonStatus::new(status, repo_root);
440 let json = serde_json::to_string_pretty(&output)
441 .map_err(|error| CliError::Internal(error.into()))?;
442 println!("{}", json);
443 Ok(())
444 }
445}
446
447impl Default for Status {

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected