/
germanubis
/
sqlx
ΠΠ±Π·ΠΎΡ
ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ
ΠΠΎΠΉΡΠΈ
/
germanubis
/
sqlx
ΠΠΎΠ΄
ΠΠ°ΠΏΡΠΎΡΡ
0
ΠΠ°Π΄Π°ΡΠΈ
ΠΠΈΠΊΠΈ
ΠΠ°ΠΊΠ΅ΡΡ
0
Π Π΅Π»ΠΈΠ·Ρ
0
ΠΠ½Π°Π»ΠΈΡΠΈΠΊΠ°
ΠΠ΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ
v0.5.2
sqlx-cli/src/bin/sqlx.rs
14 ΡΡΡΠΎΠΊ
415 B
aspen
sqlx-cli: Exit with code 1 on error.
29 ΠΈΡΠ» 2020, 22:04
29 ΠΈΡΠ» 2020, 22:04
94413bd
ΠΠΎΠ΄
ΠΠ²ΡΠΎΡΡΡΠ²ΠΎ
Π ΡΡΠΌ ΠΊΠΎΠ΄?
use clap::{crate_version, FromArgMatches, IntoApp}; use console::style; use sqlx_cli::Opt; #[tokio::main] async fn main() { let matches = Opt::into_app().version(crate_version!()).get_matches(); // no special handling here if let Err(error) = sqlx_cli::run(Opt::from_arg_matches(&matches)).await { println!("{} {}", style("error:").bold().red(), error); std::process::exit(1); } }