scud_core 0.13.0

Core library of scud
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    cli::cli::Update,
    commands::update::executors::{
        execute_update, execute_update_dry_run, execute_update_info,
    },
};

pub fn update_command(update_options: Update) {
    if update_options.dry_run {
        execute_update_dry_run();
    } else if update_options.info {
        execute_update_info();
    } else {
        execute_update();
    }
}