even more target locking
This commit is contained in:
@@ -1,27 +1,40 @@
|
||||
// Copyright 2023-2024 - Nym Technologies SA <contact@nymtech.net>
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#![cfg(unix)]
|
||||
#![warn(clippy::expect_used)]
|
||||
#![warn(clippy::unwrap_used)]
|
||||
#![warn(clippy::todo)]
|
||||
#![warn(clippy::dbg_macro)]
|
||||
|
||||
use crate::cli::Cli;
|
||||
use clap::Parser;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod cli;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod config;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod daemon;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod env;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod error;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod helpers;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod tasks;
|
||||
|
||||
#[cfg(unix)]
|
||||
pub(crate) mod upgrades;
|
||||
|
||||
#[cfg(unix)]
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let args = Cli::parse();
|
||||
use clap::Parser;
|
||||
|
||||
let args = crate::cli::Cli::parse();
|
||||
|
||||
Ok(args.execute()?)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user