#!/usr/bin/env python

from bcst.args import args
from bcst.resource import Resource
from bcst.theme import *

if args.list:
    for theme in list_themes():
        print("- "+theme)
    exit(0)
elif args.extract:
    t=Theme("default")
    t.extract("resources.json")
    exit(0)
elif args.resource and args.destination:
    t=Theme("default")
    t.update_resource(args.resource)
    t.deploy(args.destination)
