1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod update_package_versions;

use crate::update_package_versions::update_package_versions;
use std::env;

/// to use it task: cargo xtask <task_name>
/// example: cargo xtask update_package_versions to update package versions
fn main() {
    let task = env::args().nth(1);

    match task.as_deref() {
        // We can add more tasks here
        Some("update_package_versions") => update_package_versions(),
        _ => panic!("Unknown task"),
    }
}