Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

ser1.net/clapcomplete

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ser1.net/clapcomplete

Go Modules
Version
v0.0.2
Version published
Created
Source

Clapcomplete

logo

Build statusReleasesLatest release
LicenseChangelogSoftware metricsGo Report Card
Code lintingCode complexityABC metricsLines of code

clapcomplete is a utility for generating zsh and bash completion configurations for programs using claptrap .

Please file issues in the claptrap todo, and post patches and questions to the claptrap list; please also include #clapcomplete somewhere in your subjects.

About

Clapcomplete takes Claptrap JSON usage data and generates completion scripts for programs. These can then be sourced, after which zsh (or bash) argument completion should be enabled for the command. Clapcomplete will work with any program using Claptrap, without modification to the original program. Zsh and bash are supported. Completions for nested commands are supported.

To use, run the target command with the CLAPTRAP_USAGE_JSON=true environment variable; for example, for the rook program, run:

$ CLAPTRAP_USAGE_JSON=true rook | clapcomplete > rook_completion.sh

Then, source (source rook_completion.sh) and voila -- rook <tab> should show suggestions (if you have completions enabled). To make this persistent, put rook_completion.sh somewhere and source it in your .zshrc.

Bugs and limitations

See the end of CHANGELOG.md for a current list of known issues; you can also check the ticket tracker, although the legume report (in CHANGELOG.md) is probably more comprehensive.

FAQs

Package last updated on 25 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts