#!/usr/bin/env python

import logging
logging.basicConfig(level=logging.INFO, format='%(message)s')

import os
import sys
sys.path.extend([os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')])

import multiprocessing
from google.apputils import appcommands
from grow.common import sdk_utils
from grow import commands

# This hackiness provides useful information at the top of the "grow help" command.
_text = 'The Grow SDK: a declarative, file-based CMS for building-high quality web sites.'
__doc__ = """{}\n
VERSION: {} ({})""".format(_text, sdk_utils.get_this_version(), os.path.abspath(__file__))


def main(argv):
  commands.add_commands()


if __name__ == '__main__':
  multiprocessing.freeze_support()
  appcommands.Run()
