Simple "examples" command that just show examples for now.

This commit is contained in:
Romain Dorgueil
2017-11-28 21:57:08 +01:00
parent 5e0b6567cd
commit 686d1c81b3
11 changed files with 589 additions and 379 deletions

View File

@ -0,0 +1,24 @@
from bonobo.commands import BaseCommand
all_examples = (
'clock',
'datasets',
'environ',
'files.csv_handlers',
'files.json_handlers',
'files.pickle_handlers',
'files.text_handlers',
'types',
)
class ExamplesCommand(BaseCommand):
def handle(self):
print('You can run the following examples:')
print()
for example in all_examples:
print(' $ python -m bonobo.examples.{}'.format(example))
print()
def add_arguments(self, parser):
pass