docs: fix Hello World example - correct workflow format (#8)
This commit is contained in:
@@ -26,13 +26,7 @@ steps:
|
|||||||
name: 输出信息
|
name: 输出信息
|
||||||
script: run
|
script: run
|
||||||
params:
|
params:
|
||||||
message: message
|
message: $params.message
|
||||||
|
|
||||||
resolved_params:
|
|
||||||
- step_index: 0
|
|
||||||
step_name: 输出信息
|
|
||||||
params:
|
|
||||||
message: "Hello, AgentGIS!"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### scripts/run.py
|
### scripts/run.py
|
||||||
@@ -58,10 +52,10 @@ print(json.dumps(result))
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 打包
|
# 打包
|
||||||
tar czf scripts.tar.gz workflow.yaml scripts/
|
tar czf hello-world.tgz workflow.yaml scripts/
|
||||||
|
|
||||||
# 发布后执行
|
# 通过 API 发布后执行
|
||||||
agc run /tmp/output --suite-id <suite-id> --input key=val
|
agc run /tmp/output --suite-id <suite-id> --input message="Hello, AgentGIS!"
|
||||||
```
|
```
|
||||||
|
|
||||||
完整代码参考:`SuiteHub/hello-world-suite`
|
完整代码参考:`SuiteHub/hello-world-suite`
|
||||||
|
|||||||
Reference in New Issue
Block a user