etcdctl/ctlv3/command/lock_command.go
func NewLockCommand() *cobra.Command {
	c := &cobra.Command{
		Use:   "lock <lockname> [exec-command arg1 arg2 ...]",
		Short: "Acquires a named lock",
		Run:   lockCommandFunc,
	}
	c.Flags().IntVarP(&lockTTL, "ttl", "", lockTTL, "timeout for session")
	return c
}
func NewLockCommand() *cobra.Command {
	c := &cobra.Command{
		Use:   "lock <lockname> [exec-command arg1 arg2 ...]",
		Short: "Acquires a named lock",
		Run:   lockCommandFunc,
	}
	c.Flags().IntVarP(&lockTTL, "ttl", "", lockTTL, "timeout for session")
	return c
}
func NewLockCommand ( ) * cobra . Command { c := & cobra . Command { Use : " " , Short : " " , Run : lockCommandFunc , } c . Flags ( ) . IntVarP ( & lockTTL , " " , " " , lockTTL , " " ) return c }
// NewLockCommand returns the cobra command for "lock".
NewLockCommand returns the cobra command for lock .