Skip to content

Commit

Permalink
enhancement: Aliasing Parse.CSharp to Parse-CSharp (re #558)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Nov 6, 2023
1 parent 9f442d9 commit b26b69f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Commands/Parsers/Parse-CSharp.ps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Parse function CSharp {
Parse-CSharp -Source '"hello world";'
#>
[OutputType('Microsoft.CodeAnalysis.SyntaxTree')]
[Alias('Parse-CSharp')]
param(
# The source. Can be a string or a file.
[Parameter(ValueFromPipeline)]
Expand Down Expand Up @@ -40,7 +41,7 @@ Parse function CSharp {
while ($accumulate.Count) {
$dequeue = $accumulate.Dequeue()
if ($total -gt 1) {
Write-Progress "Parsing PowerShell" " " -Id $script:LastProgressID -PercentComplete $(
Write-Progress "Parsing CSharp" " " -Id $script:LastProgressID -PercentComplete $(
$count++
[Math]::Min($count / $total, 1) * 100
)
Expand Down

0 comments on commit b26b69f

Please sign in to comment.