etcdctl/ctlv3/command/ep_command.go
func NewEndpointCommand() *cobra.Command {
	ec := &cobra.Command{
		Use:   "endpoint <subcommand>",
		Short: "Endpoint related commands",
	}

	ec.PersistentFlags().BoolVar(&epClusterEndpoints, "cluster", false, "use all endpoints from the cluster member list")
	ec.AddCommand(newEpHealthCommand())
	ec.AddCommand(newEpStatusCommand())
	ec.AddCommand(newEpHashKVCommand())

	return ec
}
func NewEndpointCommand() *cobra.Command {
	ec := &cobra.Command{
		Use:   "endpoint <subcommand>",
		Short: "Endpoint related commands",
	}

	ec.PersistentFlags().BoolVar(&epClusterEndpoints, "cluster", false, "use all endpoints from the cluster member list")
	ec.AddCommand(newEpHealthCommand())
	ec.AddCommand(newEpStatusCommand())
	ec.AddCommand(newEpHashKVCommand())

	return ec
}
func NewEndpointCommand ( ) * cobra . Command { ec := & cobra . Command { Use : " " , Short : " " , } ec . PersistentFlags ( ) . BoolVar ( & epClusterEndpoints , " " , false , " " ) ec . AddCommand ( newEpHealthCommand ( ) ) ec . AddCommand ( newEpStatusCommand ( ) ) ec . AddCommand ( newEpHashKVCommand ( ) ) return ec }
// NewEndpointCommand returns the cobra command for "endpoint".
NewEndpointCommand returns the cobra command for endpoint .