MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / print_config

Function print_config

crates/cargo-lambda-system/src/lib.rs:118–125  ·  view source on GitHub ↗
(format: Option<&OutputFormat>, info: impl Serialize)

Source from the content-addressed store, hash-verified

116}
117
118fn print_config(format: Option<&OutputFormat>, info: impl Serialize) -> Result<()> {
119 match format {
120 Some(OutputFormat::Json) => {
121 serde_json::to_writer_pretty(std::io::stdout(), &info).into_diagnostic()
122 }
123 _ => serde_yml::to_writer(std::io::stdout(), &info).into_diagnostic(),
124 }
125}

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected