forked from matteo/sysroot-cleaner
Initial skeleton
This commit is contained in:
commit
cc1a66726e
14 changed files with 1044 additions and 0 deletions
8
src/args.rs
Normal file
8
src/args.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// SPDX-FileCopyrightText: Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
pub struct Args {}
|
17
src/main.rs
Normal file
17
src/main.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
// SPDX-FileCopyrightText: Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
mod args;
|
||||
|
||||
use anyhow::Result;
|
||||
use args::Args;
|
||||
use clap::Parser as _;
|
||||
use env_logger::Env;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let logging_env = Env::default().default_filter_or("info");
|
||||
env_logger::Builder::from_env(logging_env).init();
|
||||
|
||||
let _args = Args::try_parse()?;
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue