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

Method confirm_gate

atomic-cli/src/commands/view/split.rs:180–186  ·  view source on GitHub ↗

Preview the split and require an explicit acknowledgement before it is dispatched to the service or executed locally.

(&self, repo: &mut Repository, confirm: F)

Source from the content-addressed store, hash-verified

178 /// Preview the split and require an explicit acknowledgement before it
179 /// is dispatched to the service or executed locally.
180 fn confirm_gate<F>(&self, repo: &mut Repository, confirm: F) -> CliResult<()>
181 where
182 F: FnOnce(&str) -> CliResult<bool>,
183 {
184 let (working_copy, from_view, options) = self.plan(repo)?;
185 self.preview_and_prompt(repo, working_copy, &from_view, &options, confirm)
186 }
187
188 fn preview_and_prompt<F>(
189 &self,

Callers 1

runMethod · 0.80

Calls 2

preview_and_promptMethod · 0.80
planMethod · 0.45

Tested by

no test coverage detected