mirror of
https://github.com/nikolassv/bartib
synced 2024-11-10 22:24:12 +00:00
Merge branch 'master' of github.com:nikolassv/bartib
This commit is contained in:
commit
8ef95134aa
1 changed files with 7 additions and 0 deletions
|
@ -1,8 +1,15 @@
|
||||||
use anyhow::{bail, Context, Result};
|
use anyhow::{bail, Context, Result};
|
||||||
use chrono::{NaiveDate, Local, Duration};
|
use chrono::{NaiveDate, Local, Duration};
|
||||||
use clap::{App, AppSettings, Arg, ArgMatches, SubCommand};
|
use clap::{App, AppSettings, Arg, ArgMatches, SubCommand};
|
||||||
|
use nu_ansi_term::enable_ansi_support;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
if let Err(e) = enable_ansi_support() {
|
||||||
|
println!("Could not enable ansi support! Errorcode: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
let matches = App::new("bartib")
|
let matches = App::new("bartib")
|
||||||
.version("0.1")
|
.version("0.1")
|
||||||
.author("Nikolas Schmidt-Voigt <nikolas.schmidt-voigt@posteo.de>")
|
.author("Nikolas Schmidt-Voigt <nikolas.schmidt-voigt@posteo.de>")
|
||||||
|
|
Loading…
Reference in a new issue