A tree command by using groovy