Module utils

Module utils 

Source
Expand description

Utility functions for actr-cli

Functionsยง

check_required_tools
Check if required tools are available
command_exists
Check if a command is available in the system PATH
copy_file_with_dirs
Copy a file, creating parent directories as needed
ensure_dir_exists
Ensure a directory exists, creating it if necessary
execute_command
Execute a command and return the output
execute_command_streaming
Execute a command and stream its output
find_workspace_root
Find the workspace root by looking for Cargo.toml with [workspace]
get_target_dir
Get the target directory for build outputs
is_actr_project
Check if the current directory contains an Actr.toml file
to_pascal_case
Convert a string to PascalCase using heck crate
to_snake_case
Convert a string to snake_case using heck crate
warn_if_not_actr_project
Warn if not in an actr project directory