(&self)
| 197 | |
| 198 | impl 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 | |
| 210 | impl crate::commands::Command for Insert { |