Skip to content

[feature] Shell completion #4

@Freed-Wu

Description

@Freed-Wu

For zsh, the following script can work:

#compdef interactively

_arguments -s -S \
  "(- : *)"{-h,--help}"[Show list of command-line options]" \
  "--name[Show list of command-line options]: :{_command_names -e}" \
  '(-)1: :{_command_names -e}' \
  '*:: :_normal'

However, it needs #3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions