container icon indicating copy to clipboard operation
container copied to clipboard

Consider shell completion

Open guikcd opened this issue 1 year ago • 3 comments

It would be great to propose shell completion for at least zsh and bash to better navigate between subcommands & options.

guikcd avatar Jun 10 '25 12:06 guikcd

We do support this today :)

You can do run this command to generate the completion scrips

container --generate-completion-script [zsh|bash|fish]

adityaramani avatar Jun 10 '25 14:06 adityaramani

The container CLI tool is written using swift-argument-parser - and that supports shell completions out of the box. You can get more info here https://swiftpackageindex.com/apple/swift-argument-parser/1.5.1/documentation/argumentparser/installingcompletionscripts

adityaramani avatar Jun 10 '25 14:06 adityaramani

It would be great to document it. I understand it's built-in on swift app that use this lib, but I'm probably not the one which is unfamiliar.

guikcd avatar Jun 10 '25 14:06 guikcd