{"action":"created","issue":{"url":"https://api.github.com/repos/pglbutt/noodles/issues/57","labels_url":"https://api.github.com/repos/pglbutt/noodles/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/pglbutt/noodles/issues/57/comments","events_url":"https://api.github.com/repos/pglbutt/noodles/issues/57/events","html_url":"https://github.com/pglbutt/noodles/pull/57","id":89450732,"number":57,"title":"Multiple Environments","user":{"login":"Squab","id":1680069,"avatar_url":"https://avatars.githubusercontent.com/u/1680069?v=3","gravatar_id":"","url":"https://api.github.com/users/Squab","html_url":"https://github.com/Squab","followers_url":"https://api.github.com/users/Squab/followers","following_url":"https://api.github.com/users/Squab/following{/other_user}","gists_url":"https://api.github.com/users/Squab/gists{/gist_id}","starred_url":"https://api.github.com/users/Squab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squab/subscriptions","organizations_url":"https://api.github.com/users/Squab/orgs","repos_url":"https://api.github.com/users/Squab/repos","events_url":"https://api.github.com/users/Squab/events{/privacy}","received_events_url":"https://api.github.com/users/Squab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T02:58:00Z","updated_at":"2015-06-20T17:45:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pglbutt/noodles/pulls/57","html_url":"https://github.com/pglbutt/noodles/pull/57","diff_url":"https://github.com/pglbutt/noodles/pull/57.diff","patch_url":"https://github.com/pglbutt/noodles/pull/57.patch"},"body":"- [X] `spag env activate <environment>`\r\n- [X] `spag env deactivate`\r\n- [x] Fixup python unit tests for env act/deactivate\r\n- [x] Rust method documentation"},"comment":{"url":"https://api.github.com/repos/pglbutt/noodles/issues/comments/113792964","html_url":"https://github.com/pglbutt/noodles/pull/57#issuecomment-113792964","issue_url":"https://api.github.com/repos/pglbutt/noodles/issues/57","id":113792964,"user":{"login":"pglass","id":1077740,"avatar_url":"https://avatars.githubusercontent.com/u/1077740?v=3","gravatar_id":"","url":"https://api.github.com/users/pglass","html_url":"https://github.com/pglass","followers_url":"https://api.github.com/users/pglass/followers","following_url":"https://api.github.com/users/pglass/following{/other_user}","gists_url":"https://api.github.com/users/pglass/gists{/gist_id}","starred_url":"https://api.github.com/users/pglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pglass/subscriptions","organizations_url":"https://api.github.com/users/pglass/orgs","repos_url":"https://api.github.com/users/pglass/repos","events_url":"https://api.github.com/users/pglass/events{/privacy}","received_events_url":"https://api.github.com/users/pglass/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T17:45:16Z","updated_at":"2015-06-20T17:45:16Z","body":"We really need commands to create/delete/list environments:\r\n\r\n- `spag env init <env>` or `spag env create <env>` or `spag env new <env>`\r\n- `spag env rm <env>`\r\n- `spag env ls`\r\n\r\nAnother annoying thing about the yaml-rust lib is that it fails to load yaml from an empty file, and panics so you can't do anything about it:\r\n\r\n    $ spag env deactivate\r\n    $ rm .spag/environments/poo.yml\r\n    $ touch .spag/environments/poo.yml\r\n    $ spag env activate poo\r\n    $ spag env set a b\r\n    thread '<main>' panicked at 'index out of bounds: the len is 0 but the index is 0', ../src/libcollections/vec.rs:1360\r\n"}}