pub fn cmd_move(
args: &MoveArgs,
global: &GlobalArgs,
writer: &mut NdjsonWriter<impl Write>,
) -> Result<()>Expand description
Move or rename a file atomically with optional backup.
§Errors
Returns AtomwriteError::NotFound if the source file does not exist.
Returns AtomwriteError::WorkspaceJail if either path escapes the workspace.
Returns AtomwriteError::InvalidInput if source and destination are the same file or the target already exists.
Returns AtomwriteError::CrossDevice if the move crosses filesystem boundaries (handled internally via copy+delete).