From 567361204766f9d75539ba040a6307df5522b71e Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Sun, 21 Jun 2026 12:20:36 +0300 Subject: [PATCH] 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 --- src/modules/annotate/ddedit.rs | 3 +++ src/modules/draw/draw/wipeout.rs | 3 +++ src/modules/draw/modify/array.rs | 3 +++ src/modules/draw/modify/attedit.rs | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/modules/annotate/ddedit.rs b/src/modules/annotate/ddedit.rs index cf76a16ad..576328206 100644 --- a/src/modules/annotate/ddedit.rs +++ b/src/modules/annotate/ddedit.rs @@ -64,3 +64,6 @@ impl CadCommand for DdeditCommand { CmdResult::Cancel } } + +// ── Autocomplete registry ───────────────────────────────── +inventory::submit!(crate::command::CommandRegistration { names: &["DDEDIT", "ED"] }); diff --git a/src/modules/draw/draw/wipeout.rs b/src/modules/draw/draw/wipeout.rs index 77a8429c6..0d75c39e6 100644 --- a/src/modules/draw/draw/wipeout.rs +++ b/src/modules/draw/draw/wipeout.rs @@ -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"] }); diff --git a/src/modules/draw/modify/array.rs b/src/modules/draw/modify/array.rs index 6356d07a5..8621d33c3 100644 --- a/src/modules/draw/modify/array.rs +++ b/src/modules/draw/modify/array.rs @@ -1029,3 +1029,6 @@ impl CadCommand for Array3DCommand { vec![] } } + +// ── Autocomplete registry ───────────────────────────────── +inventory::submit!(crate::command::CommandRegistration { names: &["ARRAY3D", "3DARRAY"] }); diff --git a/src/modules/draw/modify/attedit.rs b/src/modules/draw/modify/attedit.rs index a4be89ce5..f98a2dc0b 100644 --- a/src/modules/draw/modify/attedit.rs +++ b/src/modules/draw/modify/attedit.rs @@ -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"] });