1 2 3 4 5 6 7 8 9 10 11 12 13 14
mod apply; mod operation; mod preview; use clap::ArgMatches; pub(super) fn run(matches: &ArgMatches) { let remove_source = matches.get_flag("remove-source"); if matches.get_flag("dry-run") { preview::run(); } else { apply::run(remove_source); } }