Move all the write* methods from the BaseCommand to the Output class
Move the publish confirmation question right before publishing
fix #47