mirror of
https://git.alemi.dev/guestbook.rs.git
synced 2024-12-19 02:54:52 +01:00
fix: renamed default to config
This commit is contained in:
parent
6ad5bc86bb
commit
94b64f98ed
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue