generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
0fc325ff72
commit
28343a98f3
|
@ -13,7 +13,7 @@ use cli::Cli;
|
|||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct Changelog {
|
||||
enable: bool,
|
||||
#[serde(alias="git-log")]
|
||||
#[serde(alias = "git-log")]
|
||||
git_log: bool,
|
||||
}
|
||||
|
||||
|
@ -110,10 +110,10 @@ impl Debug for 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() {
|
||||
Ok(repo) => repo,
|
||||
Err(err) => {
|
||||
Err(_err) => {
|
||||
let err = ConfigError::GitRepoNotFound.into();
|
||||
error!("{err}");
|
||||
return Err(err);
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
pub mod error;
|
||||
pub mod config;
|
||||
pub mod error;
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
use anyhow::Result;
|
||||
use libpt::log::{debug, trace};
|
||||
|
||||
mod error;
|
||||
mod config;
|
||||
mod error;
|
||||
use config::{cli::Cli, Config};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let cli = Cli::cli_parse();
|
||||
let config = Config::load(cli.clone())?;
|
||||
let _config = Config::load(cli.clone())?;
|
||||
|
||||
todo!()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue