func NewCmdLogout(f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
	o := NewLogoutOptions(streams)
	cmds := &cobra.Command{
		Use:     "logout",
		Short:   "End the current server session",
		Long:    logoutLong,
		Example: logoutExample,
		Run: func(cmd *cobra.Command, args []string) {
			kcmdutil.CheckErr(o.Complete(f, cmd, args))
			kcmdutil.CheckErr(o.Validate(args))
			kcmdutil.CheckErr(o.RunLogout())
		},
	}

	// TODO: support --all which performs the same logic on all users in your config file.

	return cmds
}
// NewCmdLogout implements the OpenShift cli logout command
NewCmdLogout implements the OpenShift cli logout command
// NewCmdLogout implements the OpenShift cli logout command
func NewCmdLogout(f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
	o := NewLogoutOptions(streams)
	cmds := &cobra.Command{
		Use:     "logout",
		Short:   "End the current server session",
		Long:    logoutLong,
		Example: logoutExample,
		Run: func(cmd *cobra.Command, args []string) {
			kcmdutil.CheckErr(o.Complete(f, cmd, args))
			kcmdutil.CheckErr(o.Validate(args))
			kcmdutil.CheckErr(o.RunLogout())
		},
	}
	return cmds
}
func NewCmdLogout ( f kcmdutil . Factory , streams genericclioptions . IOStreams ) * cobra . Command { o := NewLogoutOptions ( streams ) cmds := & cobra . Command { Use : " " , Short : " " , Long : logoutLong , Example : logoutExample , Run : func ( cmd * cobra . Command , args [ ] string ) { kcmdutil . CheckErr ( o . Complete ( f , cmd , args ) ) kcmdutil . CheckErr ( o . Validate ( args ) ) kcmdutil . CheckErr ( o . RunLogout ( ) ) } , } return cmds }
NewCmdLogout implements the OpenShift cli logout command
NewCmdLogout implements the OpenShift cli logout command
// TODO: support --all which performs the same logic on all users in your config file.