ID returns the container's ID as a string. Depending on the `--no-trunc` option being set, the full or truncated ID is returned.
()
| 135 | // ID returns the container's ID as a string. Depending on the `--no-trunc` |
| 136 | // option being set, the full or truncated ID is returned. |
| 137 | func (c *ContainerContext) ID() string { |
| 138 | if c.trunc { |
| 139 | return TruncateID(c.c.ID) |
| 140 | } |
| 141 | return c.c.ID |
| 142 | } |
| 143 | |
| 144 | // Names returns a comma-separated string of the container's names, with their |
| 145 | // slash (/) prefix stripped. Additional names for the container (related to the |
nothing calls this directly
no test coverage detected