Files
sqlx/sqlx-cli/src/bin/sqlx.rs
2020-07-12 03:43:55 -07:00

14 lines
384 B
Rust

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);
}
}