Skip to content

Add PowerShell completion script support to completion command #235

Description

@404-Page-Found

Description

The \completion\ command currently generates shell completion scripts for bash, zsh, and fish only (\src/commands/completion.ts). Many Windows users (this project supports Windows per AGENTS.md) use PowerShell and have no built-in completion support.

Problem Statement

PowerShell users cannot get tab-completion for commit-echo commands and flags, degrading the CLI experience on Windows.

Proposed Solution

Add \powershell\ as a supported shell in the completion generator and emit a \Register-ArgumentCompleter-based script. Extend \SupportedShell\ / \VALID_SHELLS\ and the generator dispatch accordingly.

Alternatives Considered

  • Document manual PowerShell completion (less ergonomic).

Additional Context

See \src/commands/completion.ts:3-5\ for the current shell list. The single-source-of-truth approach there should make adding a shell straightforward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions