MCPcopy Index your code
hub / github.com/docker/cli / Command

Method Command

cli/command/formatter/container.go:217–223  ·  view source on GitHub ↗

Command returns's the container's command. If the trunc option is set, the returned command is truncated (ellipsized).

()

Source from the content-addressed store, hash-verified

215// Command returns's the container's command. If the trunc option is set, the
216// returned command is truncated (ellipsized).
217func (c *ContainerContext) Command() string {
218 command := c.c.Command
219 if c.trunc {
220 command = Ellipsis(command, 20)
221 }
222 return strconv.Quote(command)
223}
224
225// CreatedAt returns the formatted string representing the container's creation date/time.
226// The format may include nanoseconds if present.

Callers

nothing calls this directly

Calls 1

EllipsisFunction · 0.70

Tested by

no test coverage detected