Skip to content

Instantly share code, notes, and snippets.

@AnthonyMastrean
Last active March 10, 2022 05:32
Show Gist options
  • Save AnthonyMastrean/6189382 to your computer and use it in GitHub Desktop.
Save AnthonyMastrean/6189382 to your computer and use it in GitHub Desktop.
PowerShell tab completion for Rake tasks via PowerTab
PS> rake -T
rake build # build all of the solution configurations
rake build_installers # build the installers
rake build_no_reports # build the solution without reports
rake build_reports # build the repots only
rake build_sharepoint # build the SharePoint website
rake package # package the websites for all publish profiles
rake package_staging # package the websites for staging
rake package_test # package the websites for test
rake package_web # package the websites for production
rake test # run the regular unit tests and db installer tests
rake version # version all of the assemblies
if(Test-Path Function:Register-TabExpansion) {
Register-TabExpansion -Name 'rake' -Type Command -Handler {
rake -T | %{ $_ -match '(^rake)(?<task>.*)(#.*)' } | %{ $matches['task'] } | %{ $_.Trim() }
}
}
@AnthonyMastrean
Copy link
Author

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment