xiaochuan's multiapp examples
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"id": "716a6079-22da-47f1-ba73-c9d58f986a38",
|
||||
"snapshot": "multiapps",
|
||||
"instruction": "I remember there is a file named \"secret.docx\" on this computer, but I can't remember where it is. Please find the path where this file is stored and copy it to the clipboard.",
|
||||
"source": "",
|
||||
"config": [
|
||||
{
|
||||
"type": "command",
|
||||
"parameters": {
|
||||
"command": "mkdir -p /home/user/Data1/List1 && mkdir -p /home/user/Data2/List2 && mkdir -p /home/user/Data3/List3 && mkdir -p /home/user/Data4/List4 && mkdir -p /home/user/Data5/List5",
|
||||
"shell" :"true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "download",
|
||||
"parameters": {
|
||||
"files": [
|
||||
{
|
||||
"url": "https://drive.google.com/uc?export=download&id=1kjfHFNmAy4ZVqGgFsxPDxWwMuZkCHxAv",
|
||||
"path": "/home/user/Data3/List3/secret.docx"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"parameters":{
|
||||
"command": "echo lixiaochuan20 | sudo -S apt install xsel && xsel -bc",
|
||||
"shell": "true"
|
||||
}
|
||||
}
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"os", "terminal"
|
||||
],
|
||||
"evaluator": {
|
||||
"func": "is_in_vm_clickboard",
|
||||
"expected": {
|
||||
"type": "vm_command_line",
|
||||
"command": "xsel --clipboard --output",
|
||||
"shell": "true"
|
||||
},
|
||||
"result": {
|
||||
"type": "rule",
|
||||
"rules": {
|
||||
"expected": "/home/user/Data3/List3/secret.docx"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user