Compare commits

..

No commits in common. "0d176bca40582a492e85ec9a1517505c4d8896c0" and "f5c67c64d7837ef815da857be05a4f7c934d3f36" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# builder # builder
FROM rust:1.74 as builder FROM rust:1.73 as builder
WORKDIR /usr/src/breeze WORKDIR /usr/src/breeze
COPY . . COPY . .

View File

@ -21,8 +21,7 @@ mod view;
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
struct Args { struct Args {
/// The path to configuration file /// The path to configuration file
#[arg(short, long, value_name = "file")] config: Option<PathBuf>,
config: PathBuf,
} }
#[tokio::main] #[tokio::main]
@ -31,7 +30,7 @@ async fn main() {
let args = Args::parse(); let args = Args::parse();
// read & parse config // read & parse config
let config_str = fs::read_to_string(args.config) let config_str = fs::read_to_string(args.config.unwrap_or("./breeze.toml".into()))
.await .await
.expect("failed to read config file! make sure it exists and you have read permissions"); .expect("failed to read config file! make sure it exists and you have read permissions");