1
0
Fork 0
src/Wip/it/bang.py

12 lines
222 B
Python

import subprocess
def main(buffer, command):
if len(command) == 1:
print("?")
else:
try:
print("[%d]" % subprocess.run(command[1:]).returncode)
except Exception as err:
print("%s" % str(err))
return buffer