runtasktic 1.2.1

Command-line task management tool for execution of regular long sequential or parallel tasks.
Documentation
use crate::commands::Command;
use anyhow::Result;
use clap::{Args, CommandFactory, Parser};

mod commands;
mod config;
mod fst;
mod notification;
mod utils;

#[macro_use]
extern crate log;
#[macro_use]
extern crate anyhow;

#[derive(Parser, Debug)]
#[command(name = "runtasktic", author, version, about)]
pub struct Runtasktic {
  #[command(subcommand)]
  pub command: Command,
}

impl Runtasktic {
  pub fn display_help(cmd: &str) {
    let clap = Self::augment_args(Self::command());
    let args = format!("{} {} --help", clap, cmd);
    clap.get_matches_from(args.split(" "));
  }
}

fn main() -> Result<()> {
  let opt = Runtasktic::parse();

  opt.command.exec()
}