fix: renamed default to config

This commit is contained in:
əlemi 2024-01-03 18:17:49 +01:00
parent 6ad5bc86bb
commit 94b64f98ed
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -45,7 +45,7 @@ enum CliAction {
}, },
/// print a sample configuration, redirect to file and customize /// print a sample configuration, redirect to file and customize
Default, Config,
/// review sent pages and approve for public view /// review sent pages and approve for public view
Review { Review {
@ -64,7 +64,7 @@ async fn main() {
.init(); .init();
match args.action { match args.action {
CliAction::Default => println!("{}", toml::to_string(&Config::default()).unwrap()), CliAction::Config => println!("{}", toml::to_string(&Config::default()).unwrap()),
CliAction::Review { batch } => { CliAction::Review { batch } => {
use std::io::Write; use std::io::Write;
sqlx::any::install_default_drivers(); // must install all available drivers before connecting sqlx::any::install_default_drivers(); // must install all available drivers before connecting