config: add simple pretty-printer for tabular data
The next commit needs to output a lot of environment variables, their types in the config schema, defaults and so on. It looks much more readable when formatted in the tabular form. This commits adds a simple tabular formatter for this purpose. Part of #8862 NO_DOC=the new module is internal NO_CHANGELOG=see NO_DOC
Showing
- src/box/CMakeLists.txt 1 addition, 0 deletionssrc/box/CMakeLists.txt
- src/box/lua/config/utils/tabulate.lua 68 additions, 0 deletionssrc/box/lua/config/utils/tabulate.lua
- src/box/lua/init.c 6 additions, 1 deletionsrc/box/lua/init.c
- test/config-luatest/tabulate_test.lua 44 additions, 0 deletionstest/config-luatest/tabulate_test.lua
src/box/lua/config/utils/tabulate.lua
0 → 100644
test/config-luatest/tabulate_test.lua
0 → 100644
Please register or sign in to comment