Function
provider_profile_export
(
server: &str,
id: &str,
output: &str,
tls: &TlsOptions,
)
Source from the content-addressed store, hash-verified
| 5061 | } |
| 5062 | |
| 5063 | pub async fn provider_profile_export( |
| 5064 | server: &str, |
| 5065 | id: &str, |
| 5066 | output: &str, |
| 5067 | tls: &TlsOptions, |
| 5068 | ) -> Result<()> { |
| 5069 | let rendered = provider_profile_export_text(server, id, output, tls).await?; |
| 5070 | if output == "json" { |
| 5071 | println!("{rendered}"); |
| 5072 | } else { |
| 5073 | print!("{rendered}"); |
| 5074 | } |
| 5075 | Ok(()) |
| 5076 | } |
| 5077 | |
| 5078 | pub async fn provider_profile_export_text( |
| 5079 | server: &str, |