Skip to content

completion: Add Bash completion for flatpak-coredumpctl - #6678

Merged
swick merged 1 commit into
flatpak:mainfrom
electricbrass:coredumpctl-bash-completion
Aug 5, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
electricbrass:coredumpctl-bash-completion

Conversation

@electricbrass

@electricbrass electricbrass commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #2001 (Though an issue for fish and zsh completion should probably be made as well).
There are also a few bits of cleanup to the main flatpak bash completion.

This is a draft because it is based on the new interface for flatpak-coredumpctl from #6705, and I will be updating this PR to be in sync with any changes made to that one after it receives feedback. Once that one is merged I will mark this as ready for review.

@electricbrass
electricbrass marked this pull request as draft June 8, 2026 06:18
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
Comment thread completion/flatpak-coredumpctl Fixed
@electricbrass
electricbrass force-pushed the coredumpctl-bash-completion branch from 2a9f2ee to 1eed910 Compare June 8, 2026 14:04
@electricbrass
electricbrass force-pushed the coredumpctl-bash-completion branch from 1eed910 to 136d65c Compare June 17, 2026 00:15
@electricbrass
electricbrass force-pushed the coredumpctl-bash-completion branch 2 times, most recently from e2820b1 to bdefee4 Compare June 18, 2026 11:28
@electricbrass
electricbrass force-pushed the coredumpctl-bash-completion branch 2 times, most recently from e117268 to c8c80d5 Compare June 27, 2026 12:12
completion: Use readarray for splitting output
@electricbrass
electricbrass marked this pull request as ready for review July 5, 2026 01:15
@electricbrass
electricbrass force-pushed the coredumpctl-bash-completion branch from c8c80d5 to d7e4b76 Compare July 5, 2026 01:15
@swick

swick commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Don't know much about bash completion but can't this be implemented in flatpak-coredumpctl itself?

@electricbrass

electricbrass commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Some parts of it could be, at the cost of having to run python on every tab press and a bit more complexity. There wouldn't be a lot to gain here, with the main benefit being that it would be possible for a few of the options (like, 3 or 4 of them) for the debug subcommand to be discovered from the argparse parser instead of needing to be explicitly listed.

@electricbrass

Copy link
Copy Markdown
Contributor Author

Just remembered there was one more thing I forgot to do. Right now meson installs the flatpak-coredumpctl completion even if flatpak-coredumpctl itself isn't being installed.

@electricbrass

Copy link
Copy Markdown
Contributor Author

Hm, actually, it looks like it unconditionally installs that anyway? I just assumed not because both Fedora and Ubuntu have it in a separate package from flatpak itself.

@swick
swick added this pull request to the merge queue Aug 5, 2026
Merged via the queue into flatpak:main with commit 5ba8afd Aug 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add bash completion to flatpak-coredumpctl

3 participants