Browse Source

HALLELUJAH - v0.1.1 do not panic if .env_chirho is not found

main_chirho
LoveJesus 3 months ago
parent
commit
96c6a63b07
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      Cargo.lock
  2. +1
    -1
      Cargo.toml
  3. +4
    -1
      src/main.rs

+ 1
- 1
Cargo.lock View File

@ -1919,7 +1919,7 @@ dependencies = [
[[package]] [[package]]
name = "rs_machine_input_chirho" name = "rs_machine_input_chirho"
version = "0.1.0"
version = "0.1.1"
dependencies = [ dependencies = [
"chrono", "chrono",
"clap", "clap",


+ 1
- 1
Cargo.toml View File

@ -1,7 +1,7 @@
# For God so loved the world, that He gave His only begotten Son, that all who believe in Him should not perish but have everlasting life # For God so loved the world, that He gave His only begotten Son, that all who believe in Him should not perish but have everlasting life
[package] [package]
name = "rs_machine_input_chirho" name = "rs_machine_input_chirho"
version = "0.1.0"
version = "0.1.1"
edition = "2021" edition = "2021"
authors = ["Love Jesus <[email protected]>"] authors = ["Love Jesus <[email protected]>"]
description = "A command-line tool to synchronize computer resource information with a remote database" description = "A command-line tool to synchronize computer resource information with a remote database"


+ 4
- 1
src/main.rs View File

@ -46,7 +46,10 @@ fn index() -> &'static str {
#[launch] #[launch]
fn rocket_chirho() -> _ { fn rocket_chirho() -> _ {
dotenvy::from_filename(".env_chirho").expect("Failed to load .env file");
match dotenvy::from_filename(".env_chirho") {
Ok(_) => (),
Err(e_chirho) => eprintln!("Likely no .env_chirho file found {}", e_chirho),
};
let cli_chirho = CliChirho::parse(); let cli_chirho = CliChirho::parse();


Loading…
Cancel
Save