# Path: handroll/commands/build.py
# class BuildCommand(Command):
# 
#     name = 'build'
#     description = _('Build a site in an output directory.')
#     help = _('build a site')
# 
#     def register(self, subparsers):
#         parser = super(BuildCommand, self).register(subparsers)
#         parser.add_argument(
#             'site', nargs='?', help=_('the path to your website'))
#         parser.add_argument('outdir', nargs='?', help=_(
#             'an optional output directory to create or'
#             ' update if it already exists'))
# 
#     def run(self, args):
#         site = Site.build(args)
#         director = prepare_director(args, site)
#         director.produce()
#         finish()
# 
# Path: handroll/commands/scaffold.py
# class ScaffoldCommand(Command):
# 
#     name = 'scaffold'
#     description = _(
#         'Make a new handroll site from a scaffold '
#         'or list the available scaffolds')
#     help = _('make a new handroll site')
# 
#     def register(self, subparsers):
#         parser = super(ScaffoldCommand, self).register(subparsers)
#         parser.add_argument(
#             'scaffold', nargs='?', help=_('the scaffold to generate'))
#         parser.add_argument(
#             'site', nargs='?', default='site',
#             help=_('the path to your website'))
# 
#     def run(self, args):
#         if args.scaffold:
#             scaffolder.make(args.scaffold, args.site)
#             finish()
#         else:
#             scaffolder.list_scaffolds()
# 
# Path: handroll/commands/watch.py
# class WatchCommand(Command):
# 
#     name = 'watch'
#     description = _(
#         'watch the site for changes and'
#         ' run a web server in the output directory')
#     help = _('watch a site and run a web server')
# 
#     def register(self, subparsers):
#         parser = super(WatchCommand, self).register(subparsers)
#         parser.add_argument(
#             'site', nargs='?', help=_('the path to your website'))
#         parser.add_argument('outdir', nargs='?', help=_(
#             'an optional output directory to create or'
#             ' update if it already exists'))
# 
#     def run(self, args):
#         site = Site.build(args)
#         director = prepare_director(args, site)
#         director.produce()
#         serve(site, director)


from handroll.commands.build import BuildCommand
from handroll.commands.scaffold import ScaffoldCommand
from handroll.commands.watch import WatchCommand
# Copyright (c) 2017, Matt Layman


COMMANDS = [
    BuildCommand(),
    WatchCommand(),
    ScaffoldCommand(),

# Path: handroll/commands/build.py
# class BuildCommand(Command):
# 
#     name = 'build'
#     description = _('Build a site in an output directory.')
#     help = _('build a site')
# 
#     def register(self, subparsers):
#         parser = super(BuildCommand, self).register(subparsers)
#         parser.add_argument(
#             'site', nargs='?', help=_('the path to your website'))
#         parser.add_argument('outdir', nargs='?', help=_(
#             'an optional output directory to create or'
#             ' update if it already exists'))
# 
#     def run(self, args):
#         site = Site.build(args)
#         director = prepare_director(args, site)
#         director.produce()
#         finish()
# 
# Path: handroll/commands/scaffold.py
# class ScaffoldCommand(Command):
# 
#     name = 'scaffold'
#     description = _(
#         'Make a new handroll site from a scaffold '
#         'or list the available scaffolds')
#     help = _('make a new handroll site')
# 
#     def register(self, subparsers):
#         parser = super(ScaffoldCommand, self).register(subparsers)
#         parser.add_argument(
#             'scaffold', nargs='?', help=_('the scaffold to generate'))
#         parser.add_argument(
#             'site', nargs='?', default='site',
#             help=_('the path to your website'))
# 
#     def run(self, args):
#         if args.scaffold:
#             scaffolder.make(args.scaffold, args.site)
#             finish()
#         else:
#             scaffolder.list_scaffolds()
# 
# Path: handroll/commands/watch.py
# class WatchCommand(Command):
# 
#     name = 'watch'
#     description = _(
#         'watch the site for changes and'
#         ' run a web server in the output directory')
#     help = _('watch a site and run a web server')
# 
#     def register(self, subparsers):
#         parser = super(WatchCommand, self).register(subparsers)
#         parser.add_argument(
#             'site', nargs='?', help=_('the path to your website'))
#         parser.add_argument('outdir', nargs='?', help=_(
#             'an optional output directory to create or'
#             ' update if it already exists'))
# 
#     def run(self, args):
#         site = Site.build(args)
#         director = prepare_director(args, site)
#         director.produce()
#         serve(site, director)


# Path: handroll/commands/builtins.py
from handroll.commands.build import BuildCommand
from handroll.commands.scaffold import ScaffoldCommand
from handroll.commands.watch import WatchCommand

# Copyright (c) 2017, Matt Layman


COMMANDS = [
    BuildCommand(),
    WatchCommand(),
    ScaffoldCommand(),

]