generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
0fc325ff72
commit
28343a98f3
|
@ -110,10 +110,10 @@ impl Debug for Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
pub fn load(cli: Cli) -> Result<Self> {
|
pub fn load(_cli: Cli) -> Result<Self> {
|
||||||
let repo = match git2::Repository::open_from_env() {
|
let repo = match git2::Repository::open_from_env() {
|
||||||
Ok(repo) => repo,
|
Ok(repo) => repo,
|
||||||
Err(err) => {
|
Err(_err) => {
|
||||||
let err = ConfigError::GitRepoNotFound.into();
|
let err = ConfigError::GitRepoNotFound.into();
|
||||||
error!("{err}");
|
error!("{err}");
|
||||||
return Err(err);
|
return Err(err);
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
pub mod error;
|
|
||||||
pub mod config;
|
pub mod config;
|
||||||
|
pub mod error;
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use libpt::log::{debug, trace};
|
|
||||||
|
|
||||||
mod error;
|
|
||||||
mod config;
|
mod config;
|
||||||
|
mod error;
|
||||||
use config::{cli::Cli, Config};
|
use config::{cli::Cli, Config};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
let cli = Cli::cli_parse();
|
let cli = Cli::cli_parse();
|
||||||
let config = Config::load(cli.clone())?;
|
let _config = Config::load(cli.clone())?;
|
||||||
|
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue