forked from pgorecki/python-ddd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.py
More file actions
13 lines (12 loc) · 370 Bytes
/
shell.py
File metadata and controls
13 lines (12 loc) · 370 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
import readline # optional, will allow Up/Down/History in the console
import code
import application
import domain
from composition_root import CommandBusContainer
from application.commands import *
variables = globals().copy()
variables.update({
'command_bus': CommandBusContainer.command_bus_factory(),
})
shell = code.InteractiveConsole(variables)
shell.interact()