DockerCLI/vendor/github.com
Sebastiaan van Stijn 52ac568385
cli/container: use github.com/moby/sys/capability for completions
We used a hard-coded list of capabilities that we copied from containerd,
but the new "capability" package allows use to have a maintained list
of capabilities.

There's likely still some improvements to be made;

First of all, the capability package could provide a function to get the list
of strings.

On the completion-side, we need to consider what format is most convenient;
currently we use the canonical name (uppercase and "CAP_" prefix), however,
tab-completion is case-sensitive by default, so requires the user to type
uppercase letters to filter the list of options.

Bash completion provides a `completion-ignore-case on` option to make completion
case-insensitive (https://askubuntu.com/a/87066), but it looks to be a global
option; the current cobra.CompletionOptions also don't provide this as an option
to be used in the generated completion-script.

Fish completion has `smartcase` (by default?) which matches any case if
all of the input is lowercase.

Zsh does not have a dedicated option, but allows setting matching-rules
(see https://superuser.com/a/1092328).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 462e08219d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-17 23:08:14 +02:00
..
Azure/go-ansiterm vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
Microsoft/go-winio vendor: github.com/containerd/platforms v0.2.1 2024-06-12 00:57:47 +02:00
beorn7/perks vendor with go mod 2021-12-16 21:16:01 +01:00
cenkalti/backoff/v4 cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
cespare/xxhash/v2 vendor: github.com/cespare/xxhash/v2 v2.3.0 2024-10-14 13:31:11 +02:00
containerd vendor: github.com/docker/docker f9522e5e96c3 (v27.1.2-dev) 2024-08-12 13:18:02 +02:00
creack/pty vendor: github.com/creack/pty v1.1.21 2024-01-08 10:22:09 +01:00
distribution/reference vendor: github.com/distribution/reference v0.6.0 2024-06-08 23:20:52 +02:00
docker vendor: github.com/docker/docker bf60e5cced83 (v27.3.0-dev) 2024-09-13 00:21:52 +02:00
felixge/httpsnoop vendor: github.com/felixge/httpsnoop v1.0.4 2023-12-12 16:22:47 +01:00
fvbommel/sortorder auth: add support for oauth device-code login 2024-08-16 10:09:38 +01:00
go-jose/go-jose/v3 auth: add support for oauth device-code login 2024-08-16 10:09:38 +01:00
go-logr cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
go-viper/mapstructure/v2 vendor: migrate to github.com/go-viper/mapstructure/v2 v2.0.0 2024-06-06 00:05:45 +02:00
gogo/protobuf Set buildx as default builder 2022-02-03 10:38:05 +01:00
golang/protobuf vendor: google.golang.org/grpc v1.62.0 2024-09-12 23:59:44 +02:00
google vendor: github.com/google/go-cmp v0.6.0 2024-01-08 10:25:45 +01:00
gorilla/mux vendor: github.com/gorilla/mux v1.8.1 2023-12-01 16:12:20 +01:00
grpc-ecosystem/grpc-gateway/v2 cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
inconshreveable/mousetrap vendor: github.com/inconshreveable/mousetrap v1.1.0 2022-12-27 13:45:16 +01:00
klauspost/compress vendor: github.com/klauspost/compress v1.17.9 2024-07-19 02:03:50 +02:00
mattn/go-runewidth vendor: github.com/mattn/go-runewidth v0.0.14 2023-05-05 02:37:12 +02:00
matttproud/golang_protobuf_extensions vendor with go mod 2021-12-16 21:16:01 +01:00
miekg/pkcs11 vendor: github.com/miekg/pkcs11 v1.1.1 2022-04-30 12:01:33 +02:00
moby cli/container: use github.com/moby/sys/capability for completions 2024-10-17 23:08:14 +02:00
morikuni/aec vendor with go mod 2021-12-16 21:16:01 +01:00
opencontainers vendor: github.com/opencontainers/image-spec v1.1.0 2024-05-31 16:10:21 +02:00
pkg auth: add support for oauth device-code login 2024-08-16 10:09:38 +01:00
prometheus vendor: github.com/prometheus/procfs v0.15.1 2024-07-19 02:04:24 +02:00
rivo/uniseg use our own version of text/tabwriter 2022-04-25 15:01:41 +02:00
sirupsen/logrus vendor: github.com/sirupsen/logrus v1.9.3 2023-06-12 11:21:25 +02:00
spf13 vendor: github.com/spf13/cobra v1.8.1 2024-06-18 21:52:58 +02:00
theupdateframework/notary vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
tonistiigi/go-rosetta vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
xeipuuv vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00