Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

[FEATURE] Add tab completion for stackql-deploy CLI commands #65

Closed

Description

@jeffreyaven

Description

Feature Description
Enable tab completion for subcommands and flags in the stackql-deploy CLI. This should allow users to partially type a command (e.g. b) and hit [TAB] to autocomplete to the matching subcommand (e.g. build), or cycle through possible completions if multiple matches exist.

The completion should work across supported shells (e.g., bash, zsh, fish, PowerShell) and ideally be registered automatically during installation.

Example(s)

stackql-deploy b[TAB]
# → stackql-deploy build

stackql-deploy bui[TAB]
# → stackql-deploy build

stackql-deploy [TAB]
# → build  test  teardown....

Possible Approaches or Libraries to Consider

Additional Context
This feature will streamline developer workflows, reduce typing errors, and align stackql-deploy with modern CLI ergonomics.
Assigning to @claude for implementation.

Activity

  1. claude commented on Oct 11, 2025

    @claude
    Contributor

    Claude finished @jeffreyaven's task —— View job • claude/issue-65-20251011-0049 • Create PR ➔


    Implementing Tab Completion for stackql-deploy CLI ✅

    I've successfully implemented tab completion for the stackql-deploy CLI commands!

    Todo List:

    • Read CLAUDE.md for repo-specific guidelines
    • Analyze the CLI framework being used (Click, argparse, etc.)
    • Examine existing commands and structure
    • Implement tab completion functionality
    • Update documentation with setup instructions
    • Test the implementation
    • Commit and push changes

    What Was Implemented

    ✨ New completion command that generates shell-specific completion scripts for:

    • Bash - using _STACKQL_DEPLOY_COMPLETE=bash_source
    • Zsh - using _STACKQL_DEPLOY_COMPLETE=zsh_source
    • Fish - using _STACKQL_DEPLOY_COMPLETE=fish_source
    • PowerShell - using custom completion script

    ✨ Comprehensive documentation added to README with setup instructions for each shell

    ✨ Leverages Click's built-in completion system for robust, reliable tab completion

    How It Works

    Users can now enable tab completion by running:

    # Generate completion script for their shell
    stackql-deploy completion bash   # or zsh, fish, powershell
    
    # Or add directly to shell config
    eval "$(_STACKQL_DEPLOY_COMPLETE=bash_source stackql-deploy)"

    This enables tab completion for:

    • All subcommands: build, test, teardown, info, init, upgrade, shell, completion
    • All command flags and options
    • Argument values where applicable

    Files Changed

    • stackql_deploy/cli.py: Added completion command and shell-specific logic
    • README.md: Added comprehensive tab completion documentation
  2. added a commit that references this issue on Oct 11, 2025
    e0cdf62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions