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

Method list_stashes

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

Source from the content-addressed store, hash-verified

715 }
716
717 pub fn list_stashes(
718 &self,
719 request: pb::ListStashesRequest,
720 ) -> CliResult<pb::ListStashesResponse> {
721 self.call(move |backend| async move {
722 match backend {
723 Backend::Local(state) => {
724 services::MutationImpl { state }
725 .list_stashes(Request::new(request))
726 .await
727 .map(|response| response.into_inner())
728 }
729 Backend::Reactor(channel) => {
730 let mut mutation =
731 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
732 mutation.list_stashes(request).await.map(|response| response.into_inner())
733 }
734 }
735 })
736 }
737
738 pub fn drop_stash(&self, request: pb::DropStashRequest) -> CliResult<pb::DropStashResponse> {
739 self.call(move |backend| async move {

Callers

nothing calls this directly

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected