Skip to content

feat: add shell completion command for bash, zsh, and fish#85

Draft
scarf005 wants to merge 2 commits intovercel-labs:mainfrom
scarf005:feat/shell-autocomplete
Draft

feat: add shell completion command for bash, zsh, and fish#85
scarf005 wants to merge 2 commits intovercel-labs:mainfrom
scarf005:feat/shell-autocomplete

Conversation

@scarf005
Copy link
Copy Markdown

@scarf005 scarf005 commented Mar 5, 2026

Summary

  • add a built-in portless completion <shell> command that prints completion scripts for bash, zsh, and fish without adding runtime dependencies
  • extend CLI coverage with completion command tests and update top-level help text/reserved-name docs accordingly
  • document completion usage and install snippets in README.md and skills/portless/SKILL.md

Verification

  • pnpm --filter portless build
  • pnpm --filter portless test -- src/cli.test.ts ✅ (54/54)
  • pnpm --filter portless typecheck
  • pnpm --filter portless test ⚠️ 1 existing environment-dependent failure in src/certs.test.ts (openssl ... -sha1 invalid digest on this OpenSSL build)

Add a built-in `portless completion <shell>` command so users can install shell completion without extra dependencies.

Assisted-by: openai/gpt-5.3-codex on opencode
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 5, 2026

@scarf005 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@scarf005 scarf005 force-pushed the feat/shell-autocomplete branch from 3af256e to 4de5054 Compare March 5, 2026 08:34
Use `compdef` for zsh completion registration and disable default file suggestions
for fish top-level command completion to prevent unrelated filename noise.

Assisted-by: gpt-5.3-codex on opencode
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@scarf005 scarf005 force-pushed the feat/shell-autocomplete branch from 4de5054 to d356c04 Compare March 5, 2026 09:03
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