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

Function sanitized_remote_label

atomic-cli/src/commands/view/list.rs:753–762  ·  view source on GitHub ↗
(remote: &str)

Source from the content-addressed store, hash-verified

751}
752
753fn sanitized_remote_label(remote: &str) -> String {
754 let Ok(mut url) = url::Url::parse(remote) else {
755 return remote.to_string();
756 };
757 let _ = url.set_username("");
758 let _ = url.set_password(None);
759 url.set_query(None);
760 url.set_fragment(None);
761 url.to_string()
762}
763
764fn print_json(output: &JsonViewList) -> CliResult<()> {
765 let json =

Callers 1

run_remoteMethod · 0.85

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected