You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.1 KiB

step字段定义

字段 类型 默认值 说明
title string "" 此步骤的标题
text string "null" markdown文件的相对路径,用于在此步骤中展示
program string "null" shell脚本的相对路径,步骤初始化时在docker容器中执行
check string "null" shell脚本的相对路径,用户点击完成步骤时在docker容器中执行,用于检查完成情况。当脚本检查通过后应当输出任意字符,否则本步骤不会进入下一步(当脚本执行出错时,也会进入下一步)。
extraTab string "null" 实训环境除了可以使用默认的docker容器命令行之外,还可以在一个iframe中访问web网页,该服务既可以由容器提供也可以是外部网页。

在本步骤的GitCourse示例中,其基础字段的填写方法为:

{
    "title": "step基础字段",
    "text": "scenario/ep4/3.md",
    "extraTab":"http://gitcourse.kfcoding.com/?compact=true#https://code.kfcoding.com/liuchangfreeman/gitcourse-guide"
}