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

Method split_view

atomic-cli/src/service/mod.rs:1672–1688  ·  view source on GitHub ↗
(&self, request: pb::SplitViewRequest)

Source from the content-addressed store, hash-verified

1670 }
1671
1672 pub fn split_view(&self, request: pb::SplitViewRequest) -> CliResult<pb::SplitViewResponse> {
1673 self.call(move |backend| async move {
1674 match backend {
1675 Backend::Local(state) => services_query::ViewImpl { state }
1676 .split_view(Request::new(request))
1677 .await
1678 .map(|response| response.into_inner()),
1679 Backend::Reactor(channel) => {
1680 let mut views = pb::view_service_client::ViewServiceClient::new(channel);
1681 views
1682 .split_view(request)
1683 .await
1684 .map(|response| response.into_inner())
1685 }
1686 }
1687 })
1688 }
1689}
1690
1691// ---------------------------------------------------------------------------

Callers 3

view_splitFunction · 0.45
preview_and_promptMethod · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected