Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Imeev Mergen <imeevma@tarantool.org>, tarantool-patches@freelists.org
Subject: [tarantool-patches] Re: [PATCH v1 1/1] Tarantoolctl "enter" with set language
Date: Fri, 27 Jul 2018 16:08:16 +0300	[thread overview]
Message-ID: <668e6568-0e45-dab3-ec24-8b80033c4738@tarantool.org> (raw)
In-Reply-To: <5bbe9065-a279-1c15-9ae2-aa58850513b8@tarantool.org>

Hi! Thanks for the fixes!


> diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
> index 2dd5d74..ef9da2f 100755
> --- a/extra/dist/tarantoolctl.in
> +++ b/extra/dist/tarantoolctl.in
>           log.error("Can't connect to %s (%s)", console_sock_path, errno.strerror())
> @@ -644,7 +659,9 @@ local function enter()
>           console_sock, TIMEOUT_INFINITY
>       )
> 
> -    console.on_start(function(self) self:eval(cmd) end)
> +    local cmd_connect = string.format("\\set language %s", language)

1. It is not cmd_connect, it is cmd_language. Connect cmd is above.

> +
> +    console.on_start(function(self) self:eval(cmd) self:eval(cmd_connect) end)
>       console.on_client_disconnect(function(self) self.running = false end)
>       console.start()
>       return 0

2. Please, write a documentation bot request for the new option.

      reply	other threads:[~2018-07-27 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25  7:51 [tarantool-patches] " imeevma
2018-07-25 21:56 ` [tarantool-patches] " Vladislav Shpilevoy
2018-07-26 11:41   ` Imeev Mergen
2018-07-27 13:08     ` Vladislav Shpilevoy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=668e6568-0e45-dab3-ec24-8b80033c4738@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=imeevma@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v1 1/1] Tarantoolctl "enter" with set language' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox