Lua formatter for client

Registered by bigbes

Today we have two formats for --cat option: raw and tarantool. The idea is adding the third option - lua. It will print all operations with their lua analogs:

box.insert(0, 1, 2, 3, '\x68\x65\x6C\x6C\x6F') -- 2
box.insert(0, 2, 3, 4, '\x62\x79\x65') -- 3
box.update(0, {1}, '+p', 1, 2) -- 4
box.update(0, {1}, '&p|p^p', 1, 2, 1, 3, 1, 4, 1, 2) -- 5
box.update(0, {2}, ':p+p', 3, box.pack('ppp', 1, 2, '\x04\x01\x00\x00\x00\x04\x02'), 2, 16) -- 6
box.update(0, {1}, '#p=p', 2, 2, 2, 3) -- 7
box.delete(0, {1}) -- 8
box.delete(0, {2}) -- 9
box.insert(1, 1, 2, 3) -- 10
box.insert(1, 1, 3, 3) -- 11
box.insert(1, 1, 4, 3) -- 12
box.delete(1, {1, 3}) -- 13

(where "-- n" - is lsn and the left side of "--" is exact command in lua, so you may copy-paste or 'lua dofile('') it')

instead of:
Insert lsn: ... time: ... len: ...
[tuple]
...
for tarantool specifier.
For these purpose we need to generate valid LUA string with all needed escape sequences.

Blueprint information

Status:
Complete
Approver:
Dmitry Simonenko
Priority:
Medium
Drafter:
bigbes
Direction:
Approved
Assignee:
bigbes
Definition:
Approved
Series goal:
Proposed for 1.5
Implementation:
Implemented
Milestone target:
milestone icon 1.5.1
Started by
bigbes
Completed by
Kostja Osipov

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.