{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/fleet/issues/1256","repository_url":"https://api.github.com/repos/coreos/fleet","labels_url":"https://api.github.com/repos/coreos/fleet/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/coreos/fleet/issues/1256/comments","events_url":"https://api.github.com/repos/coreos/fleet/issues/1256/events","html_url":"https://github.com/coreos/fleet/pull/1256","id":89223095,"number":1256,"title":"fleetctl: destroy using wildcards can search in the repository","user":{"login":"wuqixuan","id":10804027,"avatar_url":"https://avatars.githubusercontent.com/u/10804027?v=3","gravatar_id":"","url":"https://api.github.com/users/wuqixuan","html_url":"https://github.com/wuqixuan","followers_url":"https://api.github.com/users/wuqixuan/followers","following_url":"https://api.github.com/users/wuqixuan/following{/other_user}","gists_url":"https://api.github.com/users/wuqixuan/gists{/gist_id}","starred_url":"https://api.github.com/users/wuqixuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuqixuan/subscriptions","organizations_url":"https://api.github.com/users/wuqixuan/orgs","repos_url":"https://api.github.com/users/wuqixuan/repos","events_url":"https://api.github.com/users/wuqixuan/events{/privacy}","received_events_url":"https://api.github.com/users/wuqixuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-18T07:40:58Z","updated_at":"2016-03-15T15:20:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/fleet/pulls/1256","html_url":"https://github.com/coreos/fleet/pull/1256","diff_url":"https://github.com/coreos/fleet/pull/1256.diff","patch_url":"https://github.com/coreos/fleet/pull/1256.patch"},"body":"Curerntly, fleetctl destroy *.service, it will search the units\r\nin the local directory. The args with wildcards have already parsed\r\nby golang package before be passed into runDestroyUnits. So\r\nrunDestroyUnits cannot do anything.\r\n\r\nThis patch support wildcards just search in the repository,\r\nnot from local directory. But need support a new interface. The new\r\ninterface is:\r\n    fleetctl destroy \"xx*.service\".\r\nWe found that if bracket the service name, the arg will not be\r\nparsed by golang package to local directory. Then we can do match it\r\nwith the service name in the repository.\r\n\r\nFixes #710"},"comment":{"url":"https://api.github.com/repos/coreos/fleet/issues/comments/196873193","html_url":"https://github.com/coreos/fleet/pull/1256#issuecomment-196873193","issue_url":"https://api.github.com/repos/coreos/fleet/issues/1256","id":196873193,"user":{"login":"antrik","id":19555,"avatar_url":"https://avatars.githubusercontent.com/u/19555?v=3","gravatar_id":"","url":"https://api.github.com/users/antrik","html_url":"https://github.com/antrik","followers_url":"https://api.github.com/users/antrik/followers","following_url":"https://api.github.com/users/antrik/following{/other_user}","gists_url":"https://api.github.com/users/antrik/gists{/gist_id}","starred_url":"https://api.github.com/users/antrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antrik/subscriptions","organizations_url":"https://api.github.com/users/antrik/orgs","repos_url":"https://api.github.com/users/antrik/repos","events_url":"https://api.github.com/users/antrik/events{/privacy}","received_events_url":"https://api.github.com/users/antrik/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T15:20:17Z","updated_at":"2016-03-15T15:20:17Z","body":"Oh, one more thing I forgot to mention: obviously this needs a bunch of new test cases on top of everything else."}}