Skip to content
Snippets Groups Projects
Commit 3884da9f authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Kirill Yukhin
Browse files

box/console: Rename output_parse to parse_output


To be consistent in naming scheme, for example
we already have parse_operators.

Part-of #3834

Reviewed-by: default avatarKonstantin Osipov <kostja.osipov@gmail.com>
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
(cherry picked from commit af9ef211)
parent 34681544
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ local function output_verify_opts(fmt, opts)
return nil
end
local function output_parse(value)
local function parse_output(value)
local fmt, opts
if value:match("([^,]+),([^,]+)") ~= nil then
fmt, opts = value:match("([^,]+),([^,]+)")
......@@ -136,7 +136,7 @@ local function set_default_output(value)
if value == nil then
error("Nil output value passed")
end
local err, fmt, opts = output_parse(value)
local err, fmt, opts = parse_output(value)
if err then
error(err)
end
......@@ -249,7 +249,7 @@ local function set_language(storage, value)
end
local function set_output(storage, value)
local err, fmt, opts = output_parse(value)
local err, fmt, opts = parse_output(value)
if err then
return error(err)
end
......@@ -416,7 +416,7 @@ local text_connection_mt = {
end
local nr_items, items = parse_operators(command)
if nr_items == 3 then
local err, fmt, opts = output_parse(items[3])
local err, fmt, opts = parse_output(items[3])
if not err then
self.eos = output_eos[fmt]
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment