jobber 0.1.2-alpha

Minimalistic console work time tracker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    commands::{Cli, Result},
    views::CompanyView,
};
use clap::Parser;

#[derive(Parser, Debug)]
pub(crate) struct ShowCompany;

impl ShowCompany {
    pub(crate) fn run(&self, cli: &Cli) -> Result<()> {
        println!();
        let database = cli.open_database()?;
        print!("{}", CompanyView::new(&database, cli.ansi())?);
        Ok(())
    }
}