feat: add changelog, docs, and update various scripts for modular CLI milestone
Some checks failed
Compile apt-layer (v2) / compile (push) Failing after 3h13m50s

This commit is contained in:
Joe Particle 2025-07-17 09:18:42 +00:00
parent b83fa060e2
commit 4f00e140a3
10 changed files with 26 additions and 3 deletions

View file

@ -9,6 +9,12 @@
- `quick_test.py` - Quick validation script for basic functionality
- Support for verbose output, JSON output, and specific test categories
- **100% SUCCESS RATE ACHIEVED** - All 24 integration tests passing
<<<<<<< HEAD
=======
- Modularized all CLI commands into separate modules under `client/commands/`.
- Each command module now exports `setup_parser` and `run` functions for consistency.
- Comprehensive test script for client CLI refactor.
>>>>>>> 9070ae3 (feat: add changelog, docs, and update various scripts for modular CLI milestone)
### Fixed
- **D-Bus Method Registration**: Added missing methods to AptOstreeSysrootInterface
@ -40,6 +46,14 @@
- ✅ Error Handling (2/2 tests)
- ✅ Performance (2/2 tests)
- ✅ Security (1/1 test)
<<<<<<< HEAD
=======
- Updated `client/main.py` to delegate to command modules and use new D-Bus interface.
- Fixed imports in `client/commands/__init__.py` to import modules, not symbols.
- Standardized command execution function to `run` in all modules.
- Updated D-Bus mocks in tests to return dicts, not JSON strings.
- Fixed test script to call `module.run()` and check for both `run` and `setup_parser`.
>>>>>>> 9070ae3 (feat: add changelog, docs, and update various scripts for modular CLI milestone)
### Technical Details
- **Test Infrastructure**: Production-ready testing framework with proper error handling

13
TODO.md
View file

@ -1,7 +1,10 @@
# Particle-OS Tools TODO
# TODO
## Completed ✅
## Completed
- Refactor CLI to modular command structure (each command in its own module, with run/setup_parser)
- Fix imports and test script for modular pattern
<<<<<<< HEAD
- ✅ **Systemd Service Name Consistency**: Renamed and updated all references from `apt-ostree.service` to `apt-ostreed.service` for correct systemd and D-Bus integration
- ✅ **D-Bus Signal Emission**: Fixed all dbus-next signal emission calls to use direct function calls instead of `.emit()`, resolving 'function object has no attribute emit' errors
- ✅ **apt-layer.sh Integration**: Updated apt-layer.sh and related scriptlets to use the correct service name and ensure proper daemon status detection and management
@ -475,3 +478,9 @@
- **OSTree Dependency**: ✅ Installed and working
- **D-Bus Properties**: ✅ All serialization issues resolved
- **Daemon Startup**: ✅ Successfully starting and publishing interfaces
=======
## In Progress / Next Steps
- Write integration tests for the CLI and daemon (real D-Bus communication)
- Begin work on single-binary packaging for apt-ostree (PyInstaller, shiv, or pex)
- Expand and update documentation for the new modular CLI and developer onboarding
>>>>>>> 9070ae3 (feat: add changelog, docs, and update various scripts for modular CLI milestone)

0
apt-layer.sh Executable file → Normal file
View file

0
restart_daemon.sh Executable file → Normal file
View file

0
run_integration_tests.sh Executable file → Normal file
View file

0
src/apt-layer/compile-installer.sh Executable file → Normal file
View file

0
src/apt-layer/compile.sh Executable file → Normal file
View file

0
test_dbus_methods.sh Executable file → Normal file
View file

0
test_dbus_signals.sh Executable file → Normal file
View file

0
update_daemon.sh Executable file → Normal file
View file