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

Method create_stash

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

Source from the content-addressed store, hash-verified

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