pub fn referenced_vars(input: &str) -> Vec<String>
The variables input refers to as $VAR, ${VAR} or ${VAR:-…}.
input
$VAR
${VAR}
${VAR:-…}