Something went wrong. Try again.
Lints and suggestions for the Nix programming language forked from oppi.li/statix
Something went wrong. Try again.
123456789101112131415161718192021222324252627use clap::Parser;
#[rustfmt::skip]use statix::{ config::{Opts, SubCommand}, err::StatixErr, lint, fix, explain, dump, list,};
fn main_() -> Result<(), StatixErr> { let opts = Opts::parse(); match opts.cmd { SubCommand::Check(config) => lint::main::main(&config), SubCommand::Fix(config) => fix::main::all(&config), SubCommand::Single(config) => fix::main::single(&config), SubCommand::Explain(config) => explain::main::main(&config), SubCommand::Dump(_) => dump::main::main(), SubCommand::List(_) => list::main::main(), }}
fn main() { if let Err(e) = main_() { eprintln!("{e}"); }}