{"action":"created","issue":{"url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/123","repository_url":"https://api.github.com/repos/nightroman/Invoke-Build","labels_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/123/comments","events_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/123/events","html_url":"https://github.com/nightroman/Invoke-Build/issues/123","id":307067055,"number":123,"title":"Introduce `remove`, the helper for cleaning temporary build items","user":{"login":"nightroman","id":927533,"avatar_url":"https://avatars3.githubusercontent.com/u/927533?v=4","gravatar_id":"","url":"https://api.github.com/users/nightroman","html_url":"https://github.com/nightroman","followers_url":"https://api.github.com/users/nightroman/followers","following_url":"https://api.github.com/users/nightroman/following{/other_user}","gists_url":"https://api.github.com/users/nightroman/gists{/gist_id}","starred_url":"https://api.github.com/users/nightroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightroman/subscriptions","organizations_url":"https://api.github.com/users/nightroman/orgs","repos_url":"https://api.github.com/users/nightroman/repos","events_url":"https://api.github.com/users/nightroman/events{/privacy}","received_events_url":"https://api.github.com/users/nightroman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-20T22:51:31Z","updated_at":"2018-03-20T23:11:06Z","closed_at":null,"author_association":"OWNER","body":"Build scripts often produce temporary files and folders and require commands like\r\n\r\n```powershell\r\nRemove-Item X, Y -Recurse -Force -ErrorAction Ignore\r\n```\r\n\r\n**TODO**\r\n\r\nIntroduce a straightforward helper `remove`, so that the above frequent\r\noperation can be invoked as\r\n\r\n```powershell\r\nremove X, Y\r\n```\r\n\r\nArguments are supposed to be names, not paths, wildcards supported, similar to\r\n`Include` in `Get-ChildItem -Include X, Y -Recurse -Force`.\r\n"},"comment":{"url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/comments/374788395","html_url":"https://github.com/nightroman/Invoke-Build/issues/123#issuecomment-374788395","issue_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/123","id":374788395,"user":{"login":"nsartor","id":6578903,"avatar_url":"https://avatars3.githubusercontent.com/u/6578903?v=4","gravatar_id":"","url":"https://api.github.com/users/nsartor","html_url":"https://github.com/nsartor","followers_url":"https://api.github.com/users/nsartor/followers","following_url":"https://api.github.com/users/nsartor/following{/other_user}","gists_url":"https://api.github.com/users/nsartor/gists{/gist_id}","starred_url":"https://api.github.com/users/nsartor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsartor/subscriptions","organizations_url":"https://api.github.com/users/nsartor/orgs","repos_url":"https://api.github.com/users/nsartor/repos","events_url":"https://api.github.com/users/nsartor/events{/privacy}","received_events_url":"https://api.github.com/users/nsartor/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T23:11:06Z","updated_at":"2018-03-20T23:11:06Z","author_association":"NONE","body":"I don't think I'd need the output pipelined, but some way to check success or failure would be great:\r\nTry{\r\n(get-childItem some_path -recurse -filter *.tmp) | IB_Remove\r\n}\r\nCatch {\r\nexit 1\r\n}\r\n"}}
{"actor":{"display_login":"nsartor"}}