ibrahimcesar/async-inspect

Add shell completions (bash, zsh, fish)

Open

#45 opened on 2025年11月29日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Rust (1 fork)auto 404
enhancementgood first issue

Repository metrics

Stars
 (5 stars)
PR merge metrics
 (PR metrics pending)

説明

Generate shell completions for the async-inspect CLI.

Description

Enable tab-completion for async-inspect commands in popular shells.

Goals

  • Bash completions
  • Zsh completions
  • Fish completions
  • Installation instructions

Implementation

Use clap's built-in completion generation:

use clap_complete::{generate, Shell};

Installation Instructions to Document

# Bash
async-inspect completions bash > ~/.local/share/bash-completion/completions/async-inspect

# Zsh
async-inspect completions zsh > ~/.zfunc/_async-inspect

# Fish
async-inspect completions fish > ~/.config/fish/completions/async-inspect.fish

Acceptance Criteria

  • async-inspect completions <shell> command
  • Works for bash, zsh, fish
  • Installation docs in README
  • Completions for all subcommands and flags

コントリビューターガイド