Simple "examples" command that just show examples for now.
This commit is contained in:
24
bonobo/commands/examples.py
Normal file
24
bonobo/commands/examples.py
Normal 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
|
||||
Reference in New Issue
Block a user