1 2 3 4 5 6 7 8 9 10 11
use crate::error::{AppError, Result}; pub(super) fn push_confirmed(dry_run: bool, confirm: bool) -> Result<bool> { if dry_run && confirm { return Err(AppError::new( "invalid_request", "--dry-run cannot be used with --confirm", )); } Ok(confirm) }