yerba 0.5.1

YAML Editing and Refactoring with Better Accuracy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::run_yerbafile;

#[derive(clap::Args)]
#[command(about = "Check if files match Yerbafile rules (exits 1 if changes needed)")]
pub struct Args {
  /// Specific files to check (checks all if omitted)
  files: Vec<String>,
}

impl Args {
  pub fn run(self) {
    run_yerbafile(false, self.files);
  }
}