1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
// TODO(gib): If there's only one task left, stream output directly to the
// console and run sync.

// TODO(gib): Use https://lib.rs/crates/indicatif for progress bars.

use anyhow::Result;

use crate::{config, tasks};

pub mod update_self;

// TODO(gib): Implement a command to show the tree and dependencies.

/// Run update checks specified in the `up_dir` config files.
pub fn update(config: &config::UpConfig, filter_tasks: &Option<Vec<String>>) -> Result<()> {
    tasks::run(config, filter_tasks, "tasks")
}