func: Add 'list-types' command