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

Method split_view

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

Source from the content-addressed store, hash-verified

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

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