Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Autocomplete Feature to pb CLI #41

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

git-pi-e
Copy link
Contributor

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:

  • 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:

  1. Build the CLI application using make build.
  2. Install the CLI using make install.
  3. Verify the autocomplete setup by running the CLI and typing commands with double tab to see if suggestions appear.
  4. Test in different shells:
  • Bash: source /etc/bash_completion.d/pb
  • Zsh: source /usr/local/share/zsh/site-functions/_pb
  • PowerShell: . $env:USERPROFILE\Documents\PowerShell\pb_complete.ps1

Copy link

github-actions bot commented Jun 26, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@nitisht nitisht self-requested a review June 26, 2024 11:52
@git-pi-e
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

nitisht added a commit to parseablehq/.github that referenced this pull request Jun 26, 2024
@nitisht nitisht merged commit 4f65def into parseablehq:main Jul 1, 2024
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants