Commit 0738102
committed
feat: Refactor TUI into modular structure and fix display issues
- Split TUI code into organized module structure (commands/tui/)
- app.rs: Core application state and event handling
- commands.rs: Command execution and HSM interaction
- menu.rs: Menu categories and navigation
- ui.rs: UI rendering and display formatting
- mod.rs: Module exports and entry point
- Fix literal \n characters showing in TUI command output
- Update list-slots to display all slots with proper formatting
- Add comprehensive TUI testing infrastructure (15 unit tests)
- Create integration test framework for real HSM testing
- Make TUI navigation methods public for testing access
- Validate scrolling functionality with 18+ real HSM slots
All tests passing, TUI fully functional with real PKCS#11 data.
Modular architecture enables easier maintenance and testing.1 parent 7994836 commit 0738102
10 files changed
Lines changed: 1521 additions & 847 deletions
File tree
- crates/rust-hsm-cli
- src
- commands
- tui
- tests
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
0 commit comments