pub fn expand_path(path: &str) -> PathBufExpand description
Expand a path by resolving ~ and environment variables.
This function expands:
~at the start to the user’s home directory$VARor${VAR}to the value of the environment variableVAR
§Example
use click::utils::expand_path;
let path = expand_path("~/.config/myapp");
// Returns something like "/home/user/.config/myapp"
// With environment variables
std::env::set_var("MY_DIR", "/custom");
let path = expand_path("$MY_DIR/file.txt");
// Returns "/custom/file.txt"