summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-10 23:56:41 +0300
committerPaul Buetow <paul@buetow.org>2026-06-10 23:56:41 +0300
commitb9f90b4ffa8260cc906fa1b195ed0ba4aaa211df (patch)
treecf2a74c9fa9d3f302ebd14a8e86421667ef87aeb /cmd
parentdd279875b978dd3539e75c4159e62cb1b78b8ce7 (diff)
Fix mixed receivers on commandTable type
The commandTable type had mixed receiver kinds: get, rootCompletionEntries and singleSelectorNames used value receivers while add used a pointer receiver because it mutates the table. Standardize on pointer receivers for all methods (the mutating add forces this choice) and return *commandTable from newCommandTable. Call sites are unaffected since commandRegistry is an addressable package-level variable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions