Spaces:
Build error
Build error
freemt
commited on
Commit
·
b54977e
1
Parent(s):
017b7a7
Update longer (500 chars) cmd
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
"""Talk to spaces VM via subprocess.check_output."""
|
| 2 |
# pylint: disable=wrong-import-position
|
|
|
|
|
|
|
| 3 |
import sys
|
| 4 |
from pathlib import Path
|
| 5 |
if "." not in sys.path:
|
|
@@ -29,7 +31,7 @@ logzero.loglevel() # default to 10
|
|
| 29 |
|
| 30 |
|
| 31 |
# def greet(command):
|
| 32 |
-
def process(command):
|
| 33 |
"""Probe vm."""
|
| 34 |
# single line: command
|
| 35 |
# logger.info("input:\n\t %s", command)
|
|
|
|
| 1 |
"""Talk to spaces VM via subprocess.check_output."""
|
| 2 |
# pylint: disable=wrong-import-position
|
| 3 |
+
|
| 4 |
+
from typing import Optional, Tuple
|
| 5 |
import sys
|
| 6 |
from pathlib import Path
|
| 7 |
if "." not in sys.path:
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
# def greet(command):
|
| 34 |
+
def process(command) -> Tuple[str, Optional[str]]:
|
| 35 |
"""Probe vm."""
|
| 36 |
# single line: command
|
| 37 |
# logger.info("input:\n\t %s", command)
|