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

Method workspace_mode

atomic-cli/src/commands/insert.rs:199–207  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

197
198impl Insert {
199 fn workspace_mode(&self) -> WorkspaceTxnMode {
200 match &self.command {
201 Some(InsertSubcommand::View(args)) if args.dry_run => WorkspaceTxnMode::Observe,
202 Some(InsertSubcommand::Tag(args)) if args.dry_run => WorkspaceTxnMode::Observe,
203 Some(InsertSubcommand::Preview(_)) => WorkspaceTxnMode::Observe,
204 None if self.dry_run => WorkspaceTxnMode::Observe,
205 _ => WorkspaceTxnMode::Reconcile,
206 }
207 }
208}
209
210impl crate::commands::Command for Insert {

Callers 1

runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected