mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-28 21:35:50 +00:00
f5bd2001ba
Signed-off-by: Qi Zheng <qi.zheng@intel.com>
22 lines
535 B
Python
22 lines
535 B
Python
# Copyright (c) Alex Ellis 2017. All rights reserved.
|
|
# Copyright (c) OpenFaaS Author(s) 2018. All rights reserved.
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
import sys
|
|
from function import handler
|
|
|
|
def get_stdin():
|
|
buf = ""
|
|
while(True):
|
|
line = sys.stdin.readline()
|
|
buf += line
|
|
if line == "":
|
|
break
|
|
return buf
|
|
|
|
if __name__ == "__main__":
|
|
st = get_stdin()
|
|
ret = handler.handle(st)
|
|
if ret != None:
|
|
print(ret)
|