-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathcraft
More file actions
20 lines (14 loc) · 596 Bytes
/
craft
File metadata and controls
20 lines (14 loc) · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Craft Command.
This module is really used for backup only if the masonite CLI cannot import this for you.
This can be used by running "python craft". This module is not ran when the CLI can
successfully import commands for you.
"""
from cleo import Application
from masonite import info
from wsgi import container
application = Application('Masonite Version:', info.VERSION)
for key, value in container.providers.items():
if isinstance(key, str) and key.endswith('Command'):
application.add(container.make('{0}'.format(key)))
if __name__ == '__main__':
application.run()