Skip to content

Document how to source completions #2488

@ajeetdsouza

Description

@ajeetdsouza

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Clap Version

3.0.0-beta.2

Where?

clap_generate

What's wrong?

Currently, clap generates completions without providing any insight into how to actually get them running in the shell.

How to fix?

It would be nice if we could specify (for each shell):

  1. How to source the generated completions as a file
  2. How to source the generated completions when printed to stdout
  3. How to add the above to your shell configuration file

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionArea: completion generatorA-docsArea: documentation, including docs.rs, readme, examples, etc...C-enhancementCategory: Raise on the bar on expectationsE-easyCall for participation: Experience needed to fix: Easy / not much

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions