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

Method with_switch

atomic-cli/src/commands/view/new.rs:244–247  ·  view source on GitHub ↗

Builder: set the switch flag.

(mut self, switch: bool)

Source from the content-addressed store, hash-verified

242
243 /// Builder: set the switch flag.
244 pub fn with_switch(mut self, switch: bool) -> Self {
245 self.switch = switch;
246 self
247 }
248
249 /// Two-tier view creation: --draft and/or --parent
250 fn run_two_tier(&self, name: &str, repo: &mut Repository) -> CliResult<()> {

Callers 2

test_new_with_switchFunction · 0.45
test_run_with_switchFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_new_with_switchFunction · 0.36
test_run_with_switchFunction · 0.36