Skip to content

Generate completion script dynamic #3360

Description

@Zheaoli

Feature Description

For now, we have a static template file for shell completion. But it does not work for the plugin and the script we define in the config file.

Problem and Solution

Maybe we can generate the completion file dynamic? just like we do in https://github.com/spf13/cobra/blob/main/completions.go

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⭐ enhancementImprovements for existing features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions