Usage:"Output the specified number of LINES at the end of the logs. Defaults to 0, which prints all lines",
},
}
logsDescription="The kpod logs command batch-retrieves whatever logs are present for a container at the time of execution. This does not guarantee execution"+
"order when combined with kpod run (i.e. your run may not have generated any logs at the time you execute kpod logs"
logsCommand=cli.Command{
Name:"logs",
Usage:"Fetch the logs of a container",
Description:logsDescription,
Flags:logsFlags,
Action:logsCmd,
ArgsUsage:"CONTAINER",
}
)
funclogsCmd(c*cli.Context)error{
args:=c.Args()
iflen(args)!=1{
returnerrors.Errorf("'kpod logs' requires exactly one container name/ID")