fix(command): register remaining interactive commands for autocomplete

ARRAY3D/3DARRAY, ATTEDIT/ATE, DDEDIT/ED and WIPEOUT/WO dispatched on literal
matches but had no CommandRegistration entry, so none surfaced in command-line
autocomplete. Add the inventory submit in each command's module, matching the
convention used by the other interactive commands. Audit confirms no remaining
active_cmd dispatch lacks a registration.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-06-21 12:20:36 +03:00
commit 5673612047
4 changed files with 12 additions and 0 deletions

View file

@ -64,3 +64,6 @@ impl CadCommand for DdeditCommand {
CmdResult::Cancel
}
}
// ── Autocomplete registry ─────────────────────────────────
inventory::submit!(crate::command::CommandRegistration { names: &["DDEDIT", "ED"] });

View file

@ -183,3 +183,6 @@ fn make_poly_wipeout(pts: &[Vec3]) -> EntityType {
.collect();
EntityType::Wipeout(Wipeout::polygonal(&verts, z))
}
// ── Autocomplete registry ─────────────────────────────────
inventory::submit!(crate::command::CommandRegistration { names: &["WIPEOUT", "WO"] });

View file

@ -1029,3 +1029,6 @@ impl CadCommand for Array3DCommand {
vec![]
}
}
// ── Autocomplete registry ─────────────────────────────────
inventory::submit!(crate::command::CommandRegistration { names: &["ARRAY3D", "3DARRAY"] });

View file

@ -176,3 +176,6 @@ pub fn apply_attedit(doc: &mut acadrust::CadDocument, handle: acadrust::Handle,
}
}
}
// ── Autocomplete registry ─────────────────────────────────
inventory::submit!(crate::command::CommandRegistration { names: &["ATTEDIT", "ATE"] });