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::first_lookup_value;pub use env_files::load_env_lookup;pub use env_files::normalize_env_key;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::strip_utf8_bom;pub use env_files::to_env_references;pub use env_files::CLOUDFLARE_ACCOUNT_ID_ENV_KEYS;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 pnpm_package_json::migrate_package_json_pnpm_settings;pub use pnpm_package_json::PnpmSettingsMigration;pub use project_paths::collapse_project_path;pub use project_paths::resolve_project_dir;pub use project_paths::resolve_project_path;pub use project_paths::resolve_service_root;pub use version::fetch_version;pub use version::increment_version;pub use xbp_ignore::default_global_worktree_ignore_content;pub use xbp_ignore::default_xbp_ignore_path;pub use xbp_ignore::load_global_worktree_ignore_from_path;pub use xbp_ignore::load_project_xbp_ignore;pub use xbp_ignore::sync_global_worktree_ignore_file;pub use xbp_ignore::xbp_ignore_file_candidates;pub use xbp_ignore::XbpIgnoreSet;pub use xbp_ignore::DEFAULT_DISCOVERY_SKIP_DIRS;pub use xbp_ignore::DEFAULT_GLOBAL_WORKTREE_IGNORE_PATTERNS;pub use xbp_ignore::DEFAULT_NOISE_DIR_NAMES;pub use xbp_ignore::GLOBAL_WORKTREE_IGNORE_FILENAME;
Modules§
- cargo_
manifest - Cargo manifest helpers for workspace-aware version read/write.
- env_
files - node_
toolchain - pnpm_
package_ json - Migrate deprecated
package.json#pnpmsettings for pnpm v11+. - process_
monitor_ json - project_
paths - tray_
runtime - Platform event pumping and tray icon loading for native system tray UIs.
- version
- version api utilities
- xbp_
ignore - Project-local ignore rules for XBP discovery, versioning, and worktree-watch.
Structs§
Constants§
- XBP_
PROJECT_ YAML_ SCHEMA_ DIRECTIVE - Comment directive understood by the YAML Language Server / VS Code YAML extension.
- XBP_
PROJECT_ YAML_ SCHEMA_ URL - Canonical schema URL for project
.xbp/xbp.yamlIntelliSense (yaml-language-server).
Functions§
- cargo_
command_ exists - cargo_
program - collapse_
home_ to_ env - collect_
known_ xbp_ projects - collect_
listening_ port_ ownership - command_
exists - default_
project_ yaml_ config_ path - detect_
xbp_ config_ heal_ opportunities - ensure_
xbp_ yaml_ schema_ directive - Ensure the yaml-language-server
$schemacomment is present at the top of a project config. - 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 - serialize_
xbp_ yaml - write_
json_ config_ from_ any_ xbp_ config