|
| 1 | +# Implementation Plan: Rule Management CLI |
| 2 | + |
| 3 | +## Phase 1: CLI Infrastructure and Registration [checkpoint: 5de1d89] |
| 4 | + |
| 5 | +- [x] Task: Create `RuleCommand` group and register it |
| 6 | + - [x] Create `src/enapter/cli/http/api/rule_command.py` |
| 7 | + - [x] Register `RuleCommand` in `src/enapter/cli/http/api/rule_engine_command.py` |
| 8 | + - [x] Implement registration of sub-commands (placeholders for now) |
| 9 | +- [x] Task: Conductor - User Manual Verification 'Phase 1: CLI Infrastructure and Registration' (Protocol in workflow.md) |
| 10 | + |
| 11 | +## Phase 2: Read Operations (List and Get) |
| 12 | + |
| 13 | +- [x] Task: Implement `rule list` command |
| 14 | + - [x] Create `src/enapter/cli/http/api/rule_list_command.py` |
| 15 | + - [x] Implement command logic and JSON output |
| 16 | +- [x] Task: Implement `rule get` command |
| 17 | + - [x] Create `src/enapter/cli/http/api/rule_get_command.py` |
| 18 | + - [x] Implement command logic and JSON output |
| 19 | +- [x] Task: Conductor - User Manual Verification 'Phase 2: Read Operations (List and Get)' (Protocol in workflow.md) |
| 20 | + |
| 21 | +## Phase 3: Create and Delete Operations |
| 22 | + |
| 23 | +- [x] Task: Implement `rule create` command |
| 24 | + - [x] Create `src/enapter/cli/http/api/rule_create_command.py` |
| 25 | + - [x] Implement command logic (handle `--script-file`, `--runtime-version`, `--exec-interval`, `--disable`) |
| 26 | +- [x] Task: Implement `rule delete` command |
| 27 | + - [x] Create `src/enapter/cli/http/api/rule_delete_command.py` |
| 28 | + - [x] Implement command logic |
| 29 | +- [x] Task: Conductor - User Manual Verification 'Phase 3: Create and Delete Operations' (Protocol in workflow.md) |
| 30 | + |
| 31 | +## Phase 4: Update and State Management Operations |
| 32 | + |
| 33 | +- [x] Task: Implement `rule update` (slug) command |
| 34 | + - [x] Create `src/enapter/cli/http/api/rule_update_command.py` |
| 35 | + - [x] Implement command logic |
| 36 | +- [x] Task: Implement `rule update-script` command |
| 37 | + - [x] Create `src/enapter/cli/http/api/rule_update_script_command.py` |
| 38 | + - [x] Implement command logic (handle `--script-file`, `--runtime-version`, `--exec-interval`) |
| 39 | +- [x] Task: Implement `rule enable` and `rule disable` commands |
| 40 | + - [x] Create `src/enapter/cli/http/api/rule_enable_command.py` and `src/enapter/cli/http/api/rule_disable_command.py` |
| 41 | + - [x] Implement command logic |
| 42 | +- [x] Task: Conductor - User Manual Verification 'Phase 4: Update and State Management Operations' (Protocol in workflow.md) |
| 43 | + |
| 44 | +## Phase 5: Finalization and Quality Check [checkpoint: 182fade] |
| 45 | + |
| 46 | +- [x] Task: Final code quality check (linting) |
| 47 | +- [x] Task: Verify overall CLI consistency and help messages |
| 48 | +- [x] Task: Conductor - User Manual Verification 'Phase 5: Finalization and Quality Check' (Protocol in workflow.md) |
0 commit comments