completion

package
v25.0.0-beta.2+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoComplete

NoComplete is used for commands where there's no relevant completion

Types

type ValidArgsFn

type ValidArgsFn func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

ValidArgsFn a function to be used by cobra command as `ValidArgsFunction` to offer command line completion

func ContainerNames

func ContainerNames(dockerCli command.Cli, all bool, filters ...func(types.Container) bool) ValidArgsFn

ContainerNames offers completion for container names and IDs By default, only names are returned. Set DOCKER_COMPLETION_SHOW_CONTAINER_IDS=yes to also complete IDs.

func ImageNames

func ImageNames(dockerCli command.Cli) ValidArgsFn

ImageNames offers completion for images present within the local store

func NetworkNames

func NetworkNames(dockerCli command.Cli) ValidArgsFn

NetworkNames offers completion for networks

func VolumeNames

func VolumeNames(dockerCli command.Cli) ValidArgsFn

VolumeNames offers completion for volumes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL