File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
examples/syscall/06.windows_settime Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 22
33version : ' 3'
44
5+ vars :
6+ select_object : Select-Object LastAccessTime,LastWriteTime,CreationTime | Format-List
7+ new_item_cmd : New-Item test.txt -ItemType File -Force | {{.select_object}}
8+ rm_item_cmd : Remove-Item test.txt -Force
9+ get_item_cmd : Get-Item test.txt | {{.select_object}}
10+
511tasks :
612 default :
713 cmds :
8- - powershell New-Item test.txt -ItemType File -Force
9- - defer : powershell Remove-Item test.txt -Force
14+ - powershell "{{.new_item_cmd}}"
15+ - defer : powershell "{{.rm_item_cmd}}"
1016 - go run .
11- - powershell "(Get-Item test.txt).LastAccessTime"
12- - powershell "(Get-Item test.txt).LastWriteTime"
13- - powershell "(Get-Item test.txt).CreationTime"
17+ - powershell "{{.get_item_cmd}}"
You can’t perform that action at this time.
0 commit comments