Turn subtree into lsit in cmd_tree