Assert-SameFile -Text
- accept 2+ strings as Sample
and Result
.
Amend Set-Env.ps1
for PowerShell 7.5.
Tweak Show-GraphQLVoyager.ps1
.
Support several expressions in Measure-Command2.ps1
.
Show-GraphQLVoyager.ps1
2.0.0
- replaced
ApiUrl
withSchema
, either schema file (SDL format) or URL for introspection - if
Output
is specified then the browser is not opened automatically
Assert-SameFile.ps1 -Text
- use temp file cyclic suffix 0-9 to reduce collisions
Tweak Show-GraphQLVoyager.ps1
.
Add-Debugger.ps1
- amend ReadHost
Add-Debugger.ps1
- Default input method is
ReadHost
in console andReadGui
in other hosts - Use switches
ReadHost
andReadGui
(new) to change the default method
Show-GraphQLVoyager.ps1
- use UTF-8 and page title
New script Show-GraphQLVoyager.ps1
.
Assert-SameFile
1.2.0, new switch Fail
to fail even with View
.
Assert-SameFile
1.1.0, new switch Text
to compare texts.
Update-Gist
: use -GitHubToken
instead of -Credential
.
Invoke-Ngen.ps1
1.0.2, should work in Core.
Add-Debugger.ps1
2.2.1, minor tweaks.
Add-Debugger.ps1
2.2.0
- Support script modules properly.
- Invoke commands in the current scope.
Add-Debugger.ps1
2.1.0
- Open a new output console if the old is closed.
- Use PSReadLine for input when applicable.
- Use ANSI colors for source listing.
Add-Debugger.ps1
2.0.0
- use
Out-File
and support ANSI when PS 7.2+ - new parameter
Environment
, persist state - use context with before/after line numbers
- replace
w
withnew
which removes output file
Add-Debugger.ps1
- use WinForms dialog as input box
- omit
w
in help when not available - restore
$_
from parent scope if any <empty>
repeats the last StepInto, StepOver
Add-Debugger.ps1
- recognise
$name = ...
and assign "expected" scope variable - prettify
-
Add-Debugger.ps1
- Published at PSGallery.
- New parameters
XPos
,YPos
, for input box. - Use
pwsh
when the current process ispwsh
. - New
d, Detach
commands for hosts with no debugger.
-
Test-Debugger.ps1
Slight change of default behaviour: set breakpoints and test them right away. Use -NoTest in order to set breakpoints without testing.
Invoke-Ngen.ps1
- with Recurse
assume NoDependencies
.
Assert-SameFile
- fix handling paths with spaces.
Redesign Update-ReadmeIndex.ps1
.
New script Update-ReadmeIndex.ps1
.
Expand-Diff.ps1
- amend regex with tabs in path lines.
Amend Invoke-PowerShell
for PS Core: if the current process is pwsh
then
call its path else call pwsh
. This works for custom pwsh
and the dotnet
global tool, assuming the latter is in the path.
Amend Invoke-PowerShell
for PS Core: if pwsh
is available then call it else
try the current process. This works for pwsh
installed as the dotnet tool.
Amend Invoke-PowerShell
for PS v3-5 and possible not ConsoleHost
.
- New script
Set-Env.ps1
and supportiveSet-Env.ArgumentCompleters.ps1
. Submit-Gist.ps1
useshttps://gist.github.com/$GistId.git
for cloning.Update-Gist.ps1
-Credential
password is the GitHub OAUTH token.
Add File
and Argument
parameters to Invoke-Environment
, #9
Expand-Diff.ps1 - support reversed patches.
Expand-Diff.ps1 - PowerShell v2 support, tests.
Expand-Diff.ps1 - deal with encoded file names.
New script Expand-Diff.ps1.
New script Invoke-Ngen.ps1.
Invoke-PowerShell.ps1 - refresh comments and slightly improve error handling. Errors are possible on invoking with a script block argument due to the special treatment by PowerShell.
Show-SolutionDgml.ps1 - Exclude
supports wildcards.
Show-SolutionDgml.ps1
- New parameter
Exclude
. - On missing links write warnings, not errors.
- Show-SolutionDgml.ps1 - add CSharp.Sdk type.
- Watch-Directory.ps1 - use ordered dictionary for collected changes.
Show-SolutionDgml.ps1 - add ServiceFabric type, amend tags.
Add Show-SolutionDgml.ps1.
Update-Gist.ps1 - use proper SecurityProtocol
.
Add-Path.ps1
accepts one or many paths.
Dispose watchers in Watch-Directory.ps1
.
Remove zip after extraction in Save-NuGetTool.ps1
(#7).
More effective Invoke-PowerShell.ps1
.
New script Invoke-PowerShell.ps1
.
Sync-Directory.ps1
- More effective comparison using Robocopy output.
- New parameter Arguments: Robocopy arguments.
- Do not warn about extra files in both.
- Show information about all files.
- Reworked logged info and colors.
Reworked Watch-Directory.ps1
to avoid Get-Event
issues (#4).
Watch-Directory.ps1
: If the command is omitted then the script outputs change
info as text.
New Watch-Directory.ps1
- File change watcher and handler.
Cmdlet binding in scripts.
New Save-NuGetTool.ps1
- Downloads a NuGet package and extracts /tools.
Set package developmentDependency
to true.
Measure-Command2.ps1
- Avoided
Out-Host
on-Test
, data, if any, are returned before the duration. - On failures a warning is shown. It tells to examine
$Error
for more details.
Add-Debugger.ps1. New switch ReadHost
tells to use Read-Host
for input
instead of the default GUI input box.
Update-Gist.ps1. Fixed JSON issues.
New script Update-Gist.ps1. It updates or creates a gist file. Unlike
Submit-Gist.ps1 it does not require a git client, it uses the cmdlet
Invoke-RestMethod
and GitHub API. Requires PowerShell 3.0+.
Submit-Gist.ps1: Added yet another form of expected gist URL.
Invoke-Environment.ps1: Fixed cases like one of the examples :)
Add-Debugger.ps1, Trace-Debugger.ps1: Adapted for PowerShell v4.0.
Format-High.ps1: When a window width is unknown use 80 as the default. As a result, it works in PowerShell ISE, too. 80 is normally too small there but data are shown, not an error. Then a proper width may be specified manually.
Assert-SameFile.ps1: PromptForChoice did not work in PS v2.0
Assert-SameFile.ps1
- Replaced
Read-Host
prompt withPromptForChoice
. - Added Ignore (default) in addition to Update and Abort.
Added Sync-Directory.ps1.
Show-Coverage.ps1: fixed links in HTML.
New script Assert-SameFile.ps1 automates one typical test scenario, it compares the sample and result files and performs copy and view operations.
Debug tools.