chezmoi PowerShell Completion missing Native parameter #5133 uses cobra to generate PowerShell completion.
Describe the bug
chezmoi completion powershell produces:
Register-ArgumentCompleter -CommandName 'chezmoi' -ScriptBlock ${__chezmoiCompleterBlock} which does not include the Native parameter. Expected behavior is:
Register-ArgumentCompleter -Native -CommandName 'chezmoi' -ScriptBlock ${__chezmoiCompleterBlock}
To reproduce
pwsh --noprofile
chezmoi completion powershell
Expected behavior
Register-ArgumentCompleter -Native -CommandName 'chezmoi' -ScriptBlock ${__chezmoiCompleterBlock} -Native is missing from chezmoi generated PowerShell.
Additional context
This appears to apply to chezmoi: Even though it’s not documented as a requirement, it is the correct choice when:
- Completing arguments for an external executable
- The executable uses non‑PowerShell quoting rules
- The executable expects POSIX‑style flags or subcommands
- The completer needs the raw text exactly as typed
chezmoi PowerShell Completion missing Native parameter #5133 uses cobra to generate PowerShell completion.
Describe the bug
chezmoi completion powershellproduces:Register-ArgumentCompleter -CommandName 'chezmoi' -ScriptBlock ${__chezmoiCompleterBlock}which does not include the Native parameter. Expected behavior is:Register-ArgumentCompleter -Native -CommandName 'chezmoi' -ScriptBlock ${__chezmoiCompleterBlock}To reproduce
pwsh --noprofile chezmoi completion powershellExpected behavior
Register-ArgumentCompleter -Native -CommandName 'chezmoi' -ScriptBlock ${__chezmoiCompleterBlock}-Nativeis missing from chezmoi generated PowerShell.Additional context
This appears to apply to chezmoi: Even though it’s not documented as a requirement, it is the correct choice when: