summaryrefslogtreecommitdiff
path: root/agent/apps/code
diff options
context:
space:
mode:
authorhandingkang <[email protected]>2024-04-09 21:18:21 +0800
committerhandingkang <[email protected]>2024-04-09 21:18:21 +0800
commit0fe0e0ec4dda1c78bee1701eb74cc9c4d0128cd9 (patch)
tree5e4c3dc33d7c41b657cc20767007e484f59924a4 /agent/apps/code
parent7810aa10cc764db5fe262e0612c664a8df149957 (diff)
接口定义完善
Diffstat (limited to 'agent/apps/code')
-rw-r--r--agent/apps/code/test/README.md5
-rw-r--r--agent/apps/code/test/hello.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/agent/apps/code/test/README.md b/agent/apps/code/test/README.md
new file mode 100644
index 0000000..2dda2f9
--- /dev/null
+++ b/agent/apps/code/test/README.md
@@ -0,0 +1,5 @@
+# 简介
+
+hello.py 是一个测试文件,用于验证主控端任务下发到代理执行的可行性
+
+hello.py接收一个字符串,并返回对应的执行输出 \ No newline at end of file
diff --git a/agent/apps/code/test/hello.py b/agent/apps/code/test/hello.py
index e8b6f5e..8271b56 100644
--- a/agent/apps/code/test/hello.py
+++ b/agent/apps/code/test/hello.py
@@ -3,4 +3,5 @@ import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-s', '--string', type=str, help="输出到控制台的字符串", required=True)
args = parser.parse_args()
+print("hello.py开始执行,执行参数为" + args.string)
print("hello" + str(args.string))