workmn 0.0.5

Manages the lifecycle of projects on the local machine
Documentation
use super::{ActionContext, ActionResult, CliAction};

pub struct ProjectsCommand {}
pub struct TagsCommand {}

impl<'a> CliAction for ProjectsCommand {
    fn dispatch(context: ActionContext) -> ActionResult {
        for project in context.unwrap_conf().projects() {
            println!("{}", project.name());
        }

        Ok(())
    }
}

impl<'a> CliAction for TagsCommand {
    fn dispatch(context: ActionContext) -> ActionResult {
        for tag in context.unwrap_conf().tags() {
            println!("{}", tag.name());
        }

        Ok(())
    }
}