Mercurial > piecrust2
comparison piecrust/plugins/builtin.py @ 1:aaa8fb7c8918
Re-arranged modules to reduce dependencies to builtin stuff.
Added `init` command.
| author | Ludovic Chabant <ludovic@chabant.com> |
|---|---|
| date | Sun, 22 Dec 2013 08:00:24 -0800 |
| parents | |
| children | f485ba500df3 |
comparison
equal
deleted
inserted
replaced
| 0:a212a3f2e3ee | 1:aaa8fb7c8918 |
|---|---|
| 1 from piecrust.commands.builtin.info import RootCommand | |
| 2 from piecrust.commands.builtin.util import InitCommand | |
| 3 from piecrust.plugins.base import PieCrustPlugin | |
| 4 | |
| 5 | |
| 6 class BuiltInPlugin(PieCrustPlugin): | |
| 7 def __init__(self): | |
| 8 super(BuiltInPlugin, self).__init__() | |
| 9 self.name = '__builtin__' | |
| 10 | |
| 11 def getCommands(self): | |
| 12 return [ | |
| 13 InitCommand(), | |
| 14 RootCommand()] | |
| 15 |
