mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Add Python library (#20)
This commit is contained in:
13
tools/cli.py
Executable file
13
tools/cli.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Remote CLI for Flix
|
||||
|
||||
from pyflix import Flix
|
||||
|
||||
flix = Flix()
|
||||
|
||||
flix.on('print', lambda text: print(text, end=''))
|
||||
|
||||
while True:
|
||||
command = input()
|
||||
flix.cli(command, wait_response=False)
|
Reference in New Issue
Block a user