Module utils

Source
Expand description

Utility functions and helpers for plugin development

This module provides common utilities that plugin developers can use to simplify their implementations.

Functionsยง

compare_versions
Compare two version strings
create_version_info
Create a VersionInfo from a simple version string
find_executable_in_dir
Find an executable in a directory
get_exe_extension
Get the platform-specific executable extension
get_exe_name
Get the platform-specific executable name
get_plugins_dir
Get the plugins directory
get_tools_dir
Get the tools directory
get_vx_dir
Get the default vx directory
is_command_available
Check if a command is available in the system PATH
is_executable
Check if a path exists and is executable
is_prerelease
Check if a version is a prerelease
parse_version
Parse version string into components
sort_versions_desc
Sort versions in descending order (newest first)
validate_tool_name
Validate a tool name
validate_version
Validate a version string