lib: add table outbut to the command line interface