#!/usr/bin/env python

from vegetable import Table
from vegetable.output.yaml import YamlOutput
from vegetable.output.json import JsonOutput
from vegetable.output.delimited import DelimitedOutput 

t = Table()
t.column("Name")
t.column("Hobby")
t.row(["'Bob'", "Just having a whale of a time."])
t.row(["Stang", "Monsterism."])
print(t, end="\n\n")
t.output = YamlOutput()
print(t, end="\n\n")
t.output = JsonOutput(indent=4)
print(t, end="\n\n")
t.output = DelimitedOutput(delimiter=",")
print(t, end="\n\n")
