Include completion file in Linux packages #248

Closed
opened 2025-11-20 05:08:33 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @proletarius101 on GitHub (Dec 4, 2022).

Originally assigned to: @mlsmaycon on GitHub.

Is your feature request related to a problem? Please describe.
It is inconvenient and ineffective that the completion file needs to be manually placed by the users. So far, netbird only exposes a completion file generator provided by cobra at netbird completion [zsh].

Describe the solution you'd like
During the packaging process, generate a completion file, such that the completions are loaded as soon as the package is installed into the OS. Examples:

Originally created by @proletarius101 on GitHub (Dec 4, 2022). Originally assigned to: @mlsmaycon on GitHub. **Is your feature request related to a problem? Please describe.** It is inconvenient and ineffective that the completion file needs to be manually placed by the users. So far, netbird only exposes a completion file generator provided by `cobra` at `netbird completion [zsh]`. **Describe the solution you'd like** During the packaging process, generate a completion file, such that the completions are loaded as soon as the package is installed into the OS. Examples: - https://github.com/goreleaser/goreleaser/blob/main/scripts/completions.sh - https://github.com/goreleaser/goreleaser/blob/5c15e5a6ef4079e98a8ddafc71a5606fe236db82/.goreleaser.yaml#L7 - https://carlosbecker.com/posts/golang-completions-cobra/
saavagebueno added the enhancementfeature-requestclientgood first issue labels 2025-11-20 05:08:33 -05:00
Author
Owner

@mlsmaycon commented on GitHub (Dec 8, 2022):

Thanks for the suggestion @proletarius101, we will include it when updating the cobra package version in the next releases.

@mlsmaycon commented on GitHub (Dec 8, 2022): Thanks for the suggestion @proletarius101, we will include it when updating the cobra package version in the next releases.
Author
Owner

@jakob1379 commented on GitHub (Jul 15, 2025):

The completions are supported

netbird completion (bash|fish|powershell|zsh)

I believe this can be closed.

@jakob1379 commented on GitHub (Jul 15, 2025): The completions are supported ```bash netbird completion (bash|fish|powershell|zsh) ``` I believe this can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#248