You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor of AboutCmdletVerbs to make things clearer.
Dbatools Koans
Added a set of koans for the dbatools module (thanks @shaneis!)
These have been in the works for well over a year now, and Shane has done a great job of laying out the foundational principles and commands used in dbatools.
If you want to check these out, you'll first need to have the dbatools module installed from the PowerShell Gallery, and then call Show-Karma with -Module dbatools.
If there are any issues, let us know. 🙂
Bugfixes
Fixed several issues in AboutCsvCmdlets (thanks @johnheusinger!)
Fixed several issues in AboutRegularExperssions (thanks @udubnate!)
Fixed an issue in AboutGetMember where the wrong test was being used (thanks @HLupfert!)
There was a missing closing brace for one of the It blocks in this file, so I'd recommend doing a full Reset-PSKoan -Topic AboutEnumeration to be sure the file structure is correct.
I suspect doing Update-PSKoan on this file may result in some interesting behaviour due to the AST structure being very off from what's actually expected, but I've not verified how buggy that will be.
Once the file has been reset from the previous, broken state it should be safe to update.
Improvements
Enable Show-Karma -Topic $someTopic -Contemplate to allow opening just a specific topic file.
Show-Karma -Contemplate / -Meditate now open the current koan file instead of just the koan directory. Massive thanks to @arefg's awesome contributions to getting this feature working.
Added some handling for common editors known to be able to handle jumping to specific lines in specific files.
Fallback behaviour is just to open the file in the currently set editor.
To set your editor, use Set-PSKoanSetting -Name Editor -Value $editorCommandLine. If the executable is on PATH, you just need the name. If not, you can supply a full path to the executable you want PSKoans to pass the file reference to.
New Features
Show-Karma -Library
Previous -Meditation behaviour was moved to a -Library parameter - this will open the koan directory as per normal.
New Koans Module - ActiveDirectory
Currently only contains an AboutFiltering topic. (Thanks to @indented-automation for his excellent work here!)
These koans require that you have the ActiveDirectory PowerShell module installed and an available Domain Controller to query.
Get started on these koans with Show-Karma -Module ActiveDirectory, or use Show-Karma -IncludeModule ActiveDirectory to include these koans alongside the standard set.
Because it requires an additional module to be installed, these koans will not be evaluated by default.
SortingCharacters kata should actually be functional now.
Please Reset-PSKoan -Topic SortingCharacters if you're seeing issues with this kata after updating your PSKoans module.
Known Issues
SortingCharacters kata is a bit unnecessarily cruel. This needs some additional work and maybe a change of approach, so if you're having too much trouble getting a reliable solution I do recommend you skip it at the present.