Added solution for AoC 2022/3, in python and in rust

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2022-12-03 13:59:13 +01:00
parent a5420b8c51
commit 04f18534bc
17 changed files with 816 additions and 6 deletions

10
2022/common/src/cli.rs Normal file
View File

@@ -0,0 +1,10 @@
use clap::Parser;
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(author, version, about=None, long_about = None)]
pub struct Cli {
/// Path to the input file.
#[arg(short, long)]
pub input: PathBuf,
}

View File

@@ -2,6 +2,8 @@ use std::fs::File;
use std::io::{Read, Write};
use std::path::Path;
use tracing::{debug, info};
pub mod cli;
pub fn create_file(path: &Path, content: String) {
info!("Creating file");