Adds a "bare" template, containing the very minimum you want to have in 90% of cases.

This commit is contained in:
Romain Dorgueil
2017-11-05 14:59:25 +01:00
parent 56c26ea26c
commit eb393331cd
3 changed files with 31 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from bonobo.commands import BaseCommand
class InitCommand(BaseCommand):
TEMPLATES = {'default'}
TEMPLATES = {'bare', 'default'}
TEMPLATES_PATH = os.path.join(os.path.dirname(__file__), 'templates')
def add_arguments(self, parser):

View File

@ -0,0 +1,15 @@
import bonobo
def get_graph(**options):
graph = bonobo.Graph()
return graph
def get_services(**options):
return {}
if __name__ == '__main__':
with bonobo.parse_args() as options:
bonobo.run(get_graph(**options), services=get_services(**options))