#![allow( clippy::cast_precision_loss, clippy::cast_sign_loss, clippy::match_same_arms, clippy::cast_possible_wrap )] #[macro_use] extern crate clap; extern crate ansi_term; extern crate chrono_humanize; extern crate libc; extern crate lscolors; #[cfg(test)] extern crate tempfile; extern crate term_grid; extern crate terminal_size; extern crate time; extern crate unicode_width; extern crate wild; #[cfg(unix)] extern crate users; #[cfg(windows)] extern crate winapi; mod app; mod color; mod core; mod display; mod flags; mod icon; mod meta; mod sort; use crate::core::Core; use crate::flags::Flags; use std::path::PathBuf; fn main() { let matches = app::build().get_matches_from(wild::args_os()); let inputs = matches .values_of("FILE") .expect("failed to retrieve cli value") .map(PathBuf::from) .collect(); let flags = Flags::from_matches(&matches).unwrap_or_else(|err| err.exit()); let core = Core::new(flags); core.run(inputs); }