Move code from a command to the shared library
Fix #53 : add info command