Compare commits
No commits in common. "343e43a7627c2e77a30fa123cde0432d7ae40d8a" and "4d4d0d336b3604ba0a3b1f11fb6fb13b7b57c5c6" have entirely different histories.
343e43a762
...
4d4d0d336b
4 changed files with 2 additions and 22 deletions
|
|
@ -3,17 +3,11 @@ name = "entomologist"
|
|||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
log = ["dep:log", "dep:simple_logger"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.95"
|
||||
clap = { version = "4.5.26", features = ["derive"] }
|
||||
log = { version = "0.4.27", optional = true }
|
||||
rand = "0.9.1"
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
simple_logger = { version = "5.0.0", optional = true }
|
||||
tempfile = "3.20.0"
|
||||
thiserror = "2.0.11"
|
||||
toml = "0.8.19"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
use clap::Parser;
|
||||
|
||||
#[cfg(feature = "log")]
|
||||
use simple_logger;
|
||||
|
||||
#[derive(Debug, clap::Parser)]
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
|
|
@ -88,9 +85,6 @@ fn handle_command(args: &Args, issues_dir: &std::path::Path) -> anyhow::Result<(
|
|||
}
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
#[cfg(feature = "log")]
|
||||
simple_logger::SimpleLogger::new().env().init().unwrap();
|
||||
|
||||
let args: Args = Args::parse();
|
||||
// println!("{:?}", args);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
use std::io::Write;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[cfg(feature = "log")]
|
||||
use log::debug;
|
||||
|
||||
#[derive(Debug, PartialEq, serde::Deserialize)]
|
||||
/// These are the states an issue can be in.
|
||||
pub enum State {
|
||||
|
|
@ -86,8 +83,7 @@ impl Issue {
|
|||
dependencies = Some(deps);
|
||||
}
|
||||
} else {
|
||||
#[cfg(feature = "log")]
|
||||
debug!("ignoring unknown file in issue directory: {:?}", file_name);
|
||||
println!("ignoring unknown file in issue directory: {:?}", file_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
#[cfg(feature = "log")]
|
||||
use log::debug;
|
||||
|
||||
// Just a placeholder for now, get rid of this if we don't need it.
|
||||
#[derive(Debug, PartialEq, serde::Deserialize)]
|
||||
pub struct Config {}
|
||||
|
|
@ -59,8 +56,7 @@ impl Issues {
|
|||
} else if direntry.file_name() == "config.toml" {
|
||||
issues.parse_config(direntry.path().as_path())?;
|
||||
} else {
|
||||
#[cfg(feature = "log")]
|
||||
debug!(
|
||||
println!(
|
||||
"ignoring unknown file in issues directory: {:?}",
|
||||
direntry.file_name()
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue