mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00

add core container commands for podmanv2: kill, pause, restart, rm, stop, unpause Signed-off-by: Brent Baude <bbaude@redhat.com>
17 lines
233 B
Go
17 lines
233 B
Go
package utils
|
|
|
|
import "fmt"
|
|
|
|
type OutputErrors []error
|
|
|
|
func (o OutputErrors) PrintErrors() (lastError error) {
|
|
if len(o) == 0 {
|
|
return
|
|
}
|
|
lastError = o[len(o)-1]
|
|
for e := 0; e < len(o)-1; e++ {
|
|
fmt.Println(o[e])
|
|
}
|
|
return
|
|
}
|