This PR introduces an autocomplete feature for the CLI application to enhance user experience by providing command and flag suggestions. This change aims to make the CLI easier to use, especially for new users.
Changes:
Added autocomplete.go to handle the generation of autocomplete scripts.
Bash, Zsh, and PowerShell are supported.
Modified main.go to include the new autocomplete command.
Updated Makefile to install autocomplete scripts during the installation process.
Added documentation for enabling autocomplete in different shells.
How to Test:
Build the CLI application using make build.
Install the CLI using make install.
Verify the autocomplete setup by running the CLI and typing commands with double tab to see if suggestions appear.
Title: Add Autocomplete Feature to pb CLI
Description:
This PR introduces an autocomplete feature for the CLI application to enhance user experience by providing command and flag suggestions. This change aims to make the CLI easier to use, especially for new users.
Changes:
How to Test:
source /etc/bash_completion.d/pb
source /usr/local/share/zsh/site-functions/_pb
$env:USERPROFILE\Documents\PowerShell\pb_complete.ps1