{"action":"created","issue":{"url":"https://api.github.com/repos/shantytown/shanty/issues/4","labels_url":"https://api.github.com/repos/shantytown/shanty/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/shantytown/shanty/issues/4/comments","events_url":"https://api.github.com/repos/shantytown/shanty/issues/4/events","html_url":"https://github.com/shantytown/shanty/issues/4","id":56916339,"number":4,"title":"Commander makes the CLI untestable","user":{"login":"nathankleyn","id":220826,"avatar_url":"https://avatars.githubusercontent.com/u/220826?v=3","gravatar_id":"","url":"https://api.github.com/users/nathankleyn","html_url":"https://github.com/nathankleyn","followers_url":"https://api.github.com/users/nathankleyn/followers","following_url":"https://api.github.com/users/nathankleyn/following{/other_user}","gists_url":"https://api.github.com/users/nathankleyn/gists{/gist_id}","starred_url":"https://api.github.com/users/nathankleyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathankleyn/subscriptions","organizations_url":"https://api.github.com/users/nathankleyn/orgs","repos_url":"https://api.github.com/users/nathankleyn/repos","events_url":"https://api.github.com/users/nathankleyn/events{/privacy}","received_events_url":"https://api.github.com/users/nathankleyn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shantytown/shanty/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/shantytown/shanty/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"nathankleyn","id":220826,"avatar_url":"https://avatars.githubusercontent.com/u/220826?v=3","gravatar_id":"","url":"https://api.github.com/users/nathankleyn","html_url":"https://github.com/nathankleyn","followers_url":"https://api.github.com/users/nathankleyn/followers","following_url":"https://api.github.com/users/nathankleyn/following{/other_user}","gists_url":"https://api.github.com/users/nathankleyn/gists{/gist_id}","starred_url":"https://api.github.com/users/nathankleyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathankleyn/subscriptions","organizations_url":"https://api.github.com/users/nathankleyn/orgs","repos_url":"https://api.github.com/users/nathankleyn/repos","events_url":"https://api.github.com/users/nathankleyn/events{/privacy}","received_events_url":"https://api.github.com/users/nathankleyn/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-02-07T16:22:39Z","updated_at":"2015-02-07T23:43:34Z","closed_at":"2015-02-07T23:43:34Z","body":"Commander appears to use global state for commands. This means that once you call `run!` using Commander, any tests that run after that don't re-run the Commander code correctly. This makes it impossible to test all the scenarios we need to test within the CLI: any success causes any future `ARGV` changes to be ignored.\r\n\r\nWe need to switch to using something that can be tested, as this isn't an acceptable state to release 1.0 in."},"comment":{"url":"https://api.github.com/repos/shantytown/shanty/issues/comments/73389170","html_url":"https://github.com/shantytown/shanty/issues/4#issuecomment-73389170","issue_url":"https://api.github.com/repos/shantytown/shanty/issues/4","id":73389170,"user":{"login":"nathankleyn","id":220826,"avatar_url":"https://avatars.githubusercontent.com/u/220826?v=3","gravatar_id":"","url":"https://api.github.com/users/nathankleyn","html_url":"https://github.com/nathankleyn","followers_url":"https://api.github.com/users/nathankleyn/followers","following_url":"https://api.github.com/users/nathankleyn/following{/other_user}","gists_url":"https://api.github.com/users/nathankleyn/gists{/gist_id}","starred_url":"https://api.github.com/users/nathankleyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathankleyn/subscriptions","organizations_url":"https://api.github.com/users/nathankleyn/orgs","repos_url":"https://api.github.com/users/nathankleyn/repos","events_url":"https://api.github.com/users/nathankleyn/events{/privacy}","received_events_url":"https://api.github.com/users/nathankleyn/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T23:43:33Z","updated_at":"2015-02-07T23:43:33Z","body":"I went on an exploration to try and get everything working with Slop, and it didn't go great: Slop v4 is what we'd want to use, and it causes conflicts with Pry/ByeBug and only works on Ruby 2.0. Slop v3 isn't exactly what I want to use.\r\n\r\nIn the meantime, I decided to see if I could get Commander working, and I figured out what was making the tests not work. So, thus, we can stick with Commander for now."}}