#[cfg(feature = "std")]
fn main() -> Result<clientele::SysexitsError, Box<dyn std::error::Error>> {
use clientele::SysexitsError;
use secrecy::SecretString;
clientele::dotenv().ok();
let args = clientele::args_os()?;
#[cfg(feature = "tracing")]
tracing_subscriber::fmt()
.with_writer(std::io::stderr)
.with_max_level(tracing_subscriber::filter::LevelFilter::WARN)
.init();
let urls: Vec<String> = args
.iter()
.skip(1)
.map(|arg| arg.to_string_lossy().into())
.collect();
if urls.is_empty() {
return Ok(SysexitsError::EX_OK);
}
let _api_key = SecretString::from(std::env::var("SERPAPI_KEY")?);
Ok(SysexitsError::EX_OK)
}
#[cfg(not(feature = "std"))]
fn main() {
unimplemented!("asimov-serpapi-importer requires the 'std' feature")
}