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

Method create_stash

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

Source from the content-addressed store, hash-verified

678 }
679
680 pub fn create_stash(
681 &self,
682 request: pb::CreateStashRequest,
683 ) -> CliResult<pb::CreateStashResponse> {
684 self.call(move |backend| async move {
685 match backend {
686 Backend::Local(state) => {
687 services::MutationImpl { state }
688 .create_stash(Request::new(request))
689 .await
690 .map(|response| response.into_inner())
691 }
692 Backend::Reactor(channel) => {
693 let mut mutation =
694 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
695 mutation.create_stash(request).await.map(|response| response.into_inner())
696 }
697 }
698 })
699 }
700
701 pub fn apply_stash(&self, request: pb::ApplyStashRequest) -> CliResult<pb::ApplyStashResponse> {
702 self.call(move |backend| async move {

Callers 2

view_switchFunction · 0.45
stash_pushFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected