[PR #11528] core: create vm-core.func from dev #9422

Closed
opened 2026-02-05 09:03:40 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/community-scripts/ProxmoxVE/pull/11528

State: closed
Merged: Yes


✍️ Description

  • Ported missing utility functions and variables from core.func to vm-core.func for feature parity
  • create the whole file in live, later migration of old vm scripts

Features
Color & Formatting - ANSI color codes, TAB/BOLD helpers, icons
Spinner System - Async spinner with start/stop/guard functions
Messaging - msg_info(), msg_ok(), msg_error(), msg_warn(), msg_debug(), msg_custom()
Silent Execution - silent() wrapper with error logging and exit code handling
Curl Handler - Retry logic with descriptive error messages
Validation - check_root(), pve_check(), arch_check(), shell_check()
VM Utilities - get_valid_nextid(), cleanup_vmid(), set_description()
Header System - get_header(), header_info() for app-specific ASCII headers

Fixes #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.
**Original Pull Request:** https://github.com/community-scripts/ProxmoxVE/pull/11528 **State:** closed **Merged:** Yes --- <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description - Ported missing utility functions and variables from core.func to vm-core.func for feature parity - create the whole file in live, later migration of old vm scripts **Features** Color & Formatting - ANSI color codes, TAB/BOLD helpers, icons Spinner System - Async spinner with start/stop/guard functions Messaging - msg_info(), msg_ok(), msg_error(), msg_warn(), msg_debug(), msg_custom() Silent Execution - silent() wrapper with error logging and exit code handling Curl Handler - Retry logic with descriptive error messages Validation - check_root(), pve_check(), arch_check(), shell_check() VM Utilities - get_valid_nextid(), cleanup_vmid(), set_description() Header System - get_header(), header_info() for app-specific ASCII headers ## 🔗 Related Issue Fixes # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs.
OVERLORD added the pull-request label 2026-02-05 09:03:40 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#9422