Refactor grouping

This commit is contained in:
2026-03-28 11:20:16 -07:00
parent 9967e066bb
commit 5527b61d39
40 changed files with 466 additions and 630 deletions

View File

@@ -22,7 +22,7 @@ pub struct ItemCommand {
/// If present, print the schema fields instead of item data
#[arg(long)]
fields: bool,
schema: bool,
#[arg(long, short = 'x')]
exclude: Vec<String>,
@@ -58,7 +58,7 @@ impl CliCmd for ItemCommand {
})?;
let pv = PileValue::Item(item);
if self.fields {
if self.schema {
let mut map = serde_json::Map::new();
for (name, spec) in &ds.config.schema {
if self.exclude.contains(&name.to_string()) {