fn handle_switch(
args: &Switch,
main_epoch: &mut EpochConfig,
) -> Result<(), AppError>Expand description
Switches the current epoch to the one specified by the user.
The function loads the target epoch, updates the epoch identifier
in the configuration, and persists the change. It also prints a
success message via display_success.
This helper is internal to the epoch sub-command.