pros-cli icon indicating copy to clipboard operation
pros-cli copied to clipboard

✨ Setup Autocomplete

Open mayankpatibandla opened this issue 10 months ago • 0 comments

Summary:

  • Adds a command to setup autocomplete for bash, zsh, fish, pwsh, and powershell
  • Adds a custom PowerShell script to register an argument completer

Example:

pros setup-autocomplete bash

Motivation:

Since we upgraded to click 8 in #307 it is possible to use click's shell completion feature. This will allow users to quickly select commands in the supported shells.

References (optional):

Closes #138

Test Plan:

  • [x] bash (Ubuntu WSL)
  • [x] zsh (Ubuntu WSL)
  • [x] fish (Ubuntu WSL)
  • [x] pwsh (Ubuntu WSL)
  • [x] bash (Windows)
  • [ ] zsh (Windows)
    • Autocomplete doesn't work
  • [x] pwsh (Windows)
  • [x] powershell (Windows)
  • [ ] bash (macOS)
  • [ ] zsh (macOS)
  • [ ] fish (macOS)
  • [ ] pwsh (macOS)

mayankpatibandla avatar Apr 01 '24 04:04 mayankpatibandla