etcdctl/ctlv3/command/member_command.go
func NewMemberAddCommand() *cobra.Command {
	cc := &cobra.Command{
		Use:   "add <memberName> [options]",
		Short: "Adds a member into the cluster",

		Run: memberAddCommandFunc,
	}

	cc.Flags().StringVar(&memberPeerURLs, "peer-urls", "", "comma separated peer URLs for the new member.")

	return cc
}
func NewMemberAddCommand() *cobra.Command {
	cc := &cobra.Command{
		Use:   "add <memberName> [options]",
		Short: "Adds a member into the cluster",

		Run: memberAddCommandFunc,
	}

	cc.Flags().StringVar(&memberPeerURLs, "peer-urls", "", "comma separated peer URLs for the new member.")

	return cc
}
func NewMemberAddCommand ( ) * cobra . Command { cc := & cobra . Command { Use : " " , Short : " " , Run : memberAddCommandFunc , } cc . Flags ( ) . StringVar ( & memberPeerURLs , " " , " " , " " ) return cc }
// NewMemberAddCommand returns the cobra command for "member add".
NewMemberAddCommand returns the cobra command for member add .