Closed hcavarsan closed 2 months ago
This update introduces substantial refactoring and enhancements to the kftray-tauri
crate by centralizing configuration and file path logic into utility functions (utils/config_dir.rs
). This enhances code maintainability, simplifies path handling, and improves error management. Updated download links in the README.md
reflect the release version bump from 0.12.0
to 0.12.1
.
Files/Modules | Change Summary |
---|---|
src/commands.rs , src/logging.rs , src/kubeforward/... |
Refactored to use utility functions for retrieving paths, improving modularity and error handling. |
src/config.rs , src/db.rs , src/remote_config.rs |
Centralized database path logic using get_db_file_path , enhancing modularity. |
src/kubeforward/commands.rs , src/kubeforward/logging.rs |
Moved path-related functions to config_dir utility module, improving code structure. |
src/kubeforward/kubecontext.rs |
Replaced direct path constructions with get_default_kubeconfig_path and improved error handling. |
src/models/kube.rs |
Added Deserialize trait to KubeContextInfo struct. |
frontend/src/components/.../PortForwardRow/index.tsx |
Simplified log file path generation by removing reliance on homeDir API. |
utils/validate_configs.rs |
Added functionality to detect and alert multiple config directories using native dialogs. |
README.md |
Updated download links from version 0.12.0 to 0.12.1 for multiple platforms. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What’s New
Features
Config Directory Customization:
KFTRAY_CONFIG
andXDG_CONFIG_HOME
variables ( follow the XDG spec ).Duplicate Config Alerts: