Skip to content

Commit 0a02a67

Browse files
Fix up injected powershell script to have consistent indent (#50)
1 parent c232d88 commit 0a02a67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/CommandLine/ShellCompletion/PowershellCompletionInstallerBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public override string ProfileScript
2727
results.AppendLine($"Register-ArgumentCompleter -Native -CommandName {command} -ScriptBlock {{");
2828
results.AppendLine(" param($wordToComplete, $commandAst, $cursorPosition)");
2929
results.AppendLine(" $params = $commandAst.ToString().Split(' ') | Select-Object -skip 1");
30-
results.AppendLine($" & \"{exePath}\" complete $params | ForEach-Object {{");
30+
results.AppendLine($" & \"{exePath}\" complete $params | ForEach-Object {{");
3131
results.AppendLine(" [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterName', $_)");
3232
results.AppendLine(" }");
3333
results.AppendLine("}");
@@ -37,4 +37,4 @@ public override string ProfileScript
3737
}
3838
}
3939
}
40-
}
40+
}

0 commit comments

Comments
 (0)