qp or quickpath is a small cli project that I created in powershell and later also in bash to help me navigating my system more quickly. By using it instead of cd and accepting aliases to navigate based on those aliases.
Install-Module quickpathqp [commands] [sub-commands]|[arguments]An alias is added by passing it to the alias add command and passing a json object to it like:
qp alias add '{"aliases": ["<myalias>"], "windowsPath": "the\\path\\to\\my\\alias" }'qp alias add [alias] [path]For some of the logic I created unit tests. For powershell I use Pester. Pester is installed using the following:
Install-Module Pester -ForceAnd is the unit tests are run by using the following commands:
Invoke-Pester
Invoke-Pester qp-path.Tests.ps1
Invoke-Pester -Output Detailed .\qp-path.Tests.ps1