Skip to content

Commit aeef233

Browse files
required for plgin overrides
1 parent cda3316 commit aeef233

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
- Fixed Inventory model updates and active/inactive toggles to show success only after confirmed backend `2xx` responses, with explicit error feedback on failure.
4646
- Fixed an issue where changing RPM while stirring was paused would restart stirring.
4747
- `self_test` now cleans up better when interrupted.
48+
- CLI change gives plugin-registered commands precedence, enabling intentional overrides to existing `pio run` commands.
4849

4950

5051
### 26.2.3

core/pioreactor/cli/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ def list_commands(self, ctx):
5656

5757
def get_command(self, ctx, cmd_name):
5858
self._load_plugins()
59+
# Prefer plugin-registered commands over lazy defaults so plugins can
60+
# intentionally replace built-in command entrypoints.
61+
if cmd_name in self.commands:
62+
return self.commands[cmd_name]
5963
return super().get_command(ctx, cmd_name)
6064

6165

0 commit comments

Comments
 (0)