#![warn(clippy::all)]
#![warn(clippy::pedantic)]
#![allow(unknown_lints)]
#![warn(missing_docs)]
#![warn(missing_debug_implementations)]
#![warn(missing_copy_implementations)]
#![warn(rust_2018_idioms)]
#![warn(rust_2021_compatibility)]
#![warn(trivial_casts, trivial_numeric_casts)]
#![warn(unused_qualifications)]
#![warn(variant_size_differences)]
#![doc(html_favicon_url = "https://www.artichokeruby.org/favicon-32x32.png")]
#![doc(html_logo_url = "https://www.artichokeruby.org/artichoke-logo.svg")]
use std::io::{self, Write};
use std::process;
use artichoke::repl;
use termcolor::{ColorChoice, StandardStream, WriteColor};
fn main() {
let mut stderr = StandardStream::stderr(ColorChoice::Auto);
if let Err(err) = repl::run(io::stdout(), &mut stderr, None) {
let _ignored = stderr.reset();
let _ignored = writeln!(stderr, "{err}");
process::exit(1);
}
}