astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

PowerShell Completion label has changed from `powershell` to `power-shell`. #1124

Closed motty-mio2 closed 4 months ago

motty-mio2 commented 4 months ago

Steps to Reproduce

  1. Install Rye 0.34.0
  2. Type rye self completion --shell powershell

Expected Result

Get output about powershell completion.

Actual Result

# rye self completion --shell powershell
error: one of the values isn't valid for an argument

Version Info

# rye --version
rye 0.34.0
commit: 0.34.0 (d31340178 2024-05-20)
platform: linux (x86_64)
self-python: cpython@3.12.3
symlink support: true
uv enabled: true

Stacktrace

No response

motty-mio2 commented 4 months ago

In Rye document

-s, --shell <SHELL>: The shell to generate a completion script for (defaults to 'bash')

[possible values: bash, elvish, fish, powershell, zsh, nushell]

In help command

# rye self completion --help
Generates a completion script for a shell

Usage: rye self completion [OPTIONS]

Options:
  -s, --shell <SHELL>
          The shell to generate a completion script for (defaults to 'bash')

          Possible values:
          - bash:        Bourne Again SHell (bash)
          - elvish:      Elvish shell
          - fish:        Friendly Interactive SHell (fish)
          - power-shell: PowerShell
          - zsh:         Z SHell (zsh)
          - nushell:     Nushell

  -h, --help
          Print help (see a summary with '-h')
charliermarsh commented 4 months ago

Thanks, that was a bug introduced when we added Nushell. Will fix.