func NewCmdLogs(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
	o := NewLogsOptions(streams, false)

	cmd := &cobra.Command{
		Use:                   logsUsageStr,
		DisableFlagsInUseLine: true,
		Short:                 i18n.T("Print the logs for a container in a pod"),
		Long:                  "Print the logs for a container in a pod or specified resource. If the pod has only one container, the container name is optional.",
		Example:               logsExample,
		Run: func(cmd *cobra.Command, args []string) {
			cmdutil.CheckErr(o.Complete(f, cmd, args))
			cmdutil.CheckErr(o.Validate())
			cmdutil.CheckErr(o.RunLogs())
		},
	}
	o.AddFlags(cmd)
	return cmd
}
// NewCmdLogs creates a new pod logs command
NewCmdLogs creates a new pod logs command
// NewCmdLogs creates a new pod logs command
func NewCmdLogs(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
	o := NewLogsOptions(streams, false)
	cmd := &cobra.Command{
		Use:                   logsUsageStr,
		DisableFlagsInUseLine: true,
		Short:                 i18n.T("Print the logs for a container in a pod"),
		Long:                  "Print the logs for a container in a pod or specified resource. If the pod has only one container, the container name is optional.",
		Example:               logsExample,
		Run: func(cmd *cobra.Command, args []string) {
			cmdutil.CheckErr(o.Complete(f, cmd, args))
			cmdutil.CheckErr(o.Validate())
			cmdutil.CheckErr(o.RunLogs())
		},
	}
	o.AddFlags(cmd)
	return cmd
}
func NewCmdLogs ( f cmdutil . Factory , streams genericclioptions . IOStreams ) * cobra . Command { o := NewLogsOptions ( streams , false ) cmd := & cobra . Command { Use : logsUsageStr , DisableFlagsInUseLine : true , Short : i18n . T ( " " ) , Long : " " , Example : logsExample , Run : func ( cmd * cobra . Command , args [ ] string ) { cmdutil . CheckErr ( o . Complete ( f , cmd , args ) ) cmdutil . CheckErr ( o . Validate ( ) ) cmdutil . CheckErr ( o . RunLogs ( ) ) } , } o . AddFlags ( cmd ) return cmd }
NewCmdLogs creates a new pod logs command
NewCmdLogs creates a new pod logs command