gflow 0.4.14

A lightweight, single-node job scheduler written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::cli::Commands;
use clap::CommandFactory;

pub mod add;
mod new;

pub async fn handle_commands(_: &gflow::config::Config, commands: Commands) -> anyhow::Result<()> {
    match commands {
        Commands::New(new_args) => new::handle_new(new_args),
        Commands::Completion { shell } => {
            let mut cmd = super::cli::GBatch::command();
            let _ = crate::multicall::completion::generate_to_stdout(shell, &mut cmd, "gbatch");
            Ok(())
        }
    }
}