functions/RegisterDirTags.ps1


function RegisterDirTags {    
    foreach($dt in GetCurrentDirTags) {
        Write-Verbose ('setting ${0} to {1}' -f $dt.name, $dt.path)
        New-Variable $dt.name -Value $dt.path -Scope 'global' -Force
        $script:tagVariables += @{name = $dt.name; path = $dt.path}
    }
}