lua-console: refactor no-arguments yaml convertion and reduce print function