Skip to main content

Module utils

Module utils 

Source
Expand description

utility functions for xbp cli

provides utility modules for common operations includes version api integration and other helper functions

Re-exports§

pub use cargo_manifest::resolve_cargo_package_version;
pub use cargo_manifest::resolve_cargo_package_version_required;
pub use cargo_manifest::write_cargo_package_version;
pub use env_files::normalize_env_value;
pub use env_files::parse_env_content;
pub use env_files::parse_env_file;
pub use env_files::resolve_env_placeholders;
pub use env_files::to_env_references;
pub use node_toolchain::find_node_toolchain_root;
pub use node_toolchain::is_node_toolchain_command;
pub use node_toolchain::node_toolchain_wrapper_path;
pub use process_monitor_json::fix_cursor_process_monitor_json;
pub use process_monitor_json::fix_cursor_process_monitor_json_file;
pub use process_monitor_json::CursorProcessMonitorJsonFix;
pub use project_paths::collapse_project_path;
pub use project_paths::resolve_project_path;
pub use version::fetch_version;
pub use version::increment_version;

Modules§

cargo_manifest
Cargo manifest helpers for workspace-aware version read/write.
env_files
node_toolchain
process_monitor_json
project_paths
version
version api utilities

Structs§

FoundXbpConfig
KnownXbpProject
ListeningPortOwnership
XbpConfigHealResult

Functions§

collapse_home_to_env
collect_known_xbp_projects
collect_listening_port_ownership
command_exists
default_project_yaml_config_path
detect_xbp_config_heal_opportunities
expand_home_in_string
find_existing_yaml_xbp_config
find_xbp_config_upwards
first_available_command
git_remote_url_from_metadata
heal_config_file
heal_project_xbp_config
maybe_auto_convert_legacy_xbp_json_to_yaml
open_path_with_editor
open_with_default_handler
parse_config_with_auto_heal
parse_github_repo_from_remote_url
preferred_pip_command
preferred_python_command
redact_remote_url_credentials
resolve_xbp_project_for_path
write_json_config_from_any_xbp_config