MCPcopy Create free account
hub / github.com/containerd/nerdctl / logsShellComplete

Function logsShellComplete

cmd/nerdctl/container/container_logs.go:124–127  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

122}
123
124func logsShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
125 // show container names (TODO: only show containers with logs)
126 return completion.ContainerNames(cmd, nil)
127}
128
129// Attempts to parse the argument given to `-n/--tail` as a uint.
130func getTailArgAsUint(arg string) (uint, error) {

Callers

nothing calls this directly

Calls 1

ContainerNamesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…