Skip to content

Conversation

@sachnun
Copy link

@sachnun sachnun commented Oct 28, 2025

Summary

Enables tab completion for CLI commands, subcommands, and flags in bash and zsh shells. Autocomplete is automatically configured on installation without requiring manual setup.

Changes

  • Autocomplete Plugin: Add @oclif/plugin-autocomplete dependency with automatic installation setup
  • Postinstall Script: Auto-detect user shell (bash/zsh) and configure autocomplete in .bashrc/.zshrc
  • Hidden Commands: Add init hook to hide autocomplete commands from --help output
  • Redis Bug Fix: Fix environmentId flag not being extracted from CLI arguments
  • CI Fix: Add pnpm setup step to test workflow
  • Lockfile Update: Update pnpm-lock.yaml for new dependency

Breaking Changes

None

Add automatic shell autocomplete functionality that configures itself during installation:
- Add @oclif/plugin-autocomplete dependency
- Create hidden autocomplete command to prevent manual execution
- Implement postinstall script to automatically configure bash/zsh autocomplete
- Add init hook to hide autocomplete commands from help output

The autocomplete will be automatically enabled on installation for bash and zsh shells without requiring manual setup commands.
Rename readme.md to README.md to align with oclif tooling requirements.
The oclif readme command generates README.md (uppercase) by default,
and GitHub Actions workflow expects this naming convention.
Add environmentId to the destructured flags in redis create command.
The environmentId flag was defined but not being extracted from flags,
causing it to always be undefined even when passed via CLI.
Add pnpm/action-setup@v4 to install pnpm before running tests.
This fixes the "Unable to locate executable file: pnpm" error
in the GitHub Actions workflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant