blob: b1bb8cd4e1abb8c46f67e8a6b413109c8ff0b730 [file] [log] [blame] [edit]
[
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"Here is some text data",
"[START_DIR]/some file"
],
"infra_step": true,
"name": "write a file"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/some file",
"[START_DIR]/new path"
],
"infra_step": true,
"name": "copy it"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/new path",
"/path/to/tmp/"
],
"infra_step": true,
"name": "read it"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"move",
"[START_DIR]/new path",
"[START_DIR]/new new path"
],
"infra_step": true,
"name": "move it"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/new new path",
"/path/to/tmp/"
],
"infra_step": true,
"name": "read it (2)"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"{\"hello\": \"world\"}",
"[START_DIR]/some file"
],
"infra_step": true,
"name": "Copy some JSON data"
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/some file",
"/path/to/tmp/"
],
"infra_step": true,
"name": "read json back"
},
{
"jsonResult": null,
"name": "$result"
}
]