{"action":"created","issue":{"url":"https://api.github.com/repos/doowb/macro-store/issues/1","repository_url":"https://api.github.com/repos/doowb/macro-store","labels_url":"https://api.github.com/repos/doowb/macro-store/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/doowb/macro-store/issues/1/comments","events_url":"https://api.github.com/repos/doowb/macro-store/issues/1/events","html_url":"https://github.com/doowb/macro-store/issues/1","id":170334651,"number":1,"title":"idea for API","user":{"login":"jonschlinkert","id":383994,"avatar_url":"https://avatars.githubusercontent.com/u/383994?v=3","gravatar_id":"","url":"https://api.github.com/users/jonschlinkert","html_url":"https://github.com/jonschlinkert","followers_url":"https://api.github.com/users/jonschlinkert/followers","following_url":"https://api.github.com/users/jonschlinkert/following{/other_user}","gists_url":"https://api.github.com/users/jonschlinkert/gists{/gist_id}","starred_url":"https://api.github.com/users/jonschlinkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonschlinkert/subscriptions","organizations_url":"https://api.github.com/users/jonschlinkert/orgs","repos_url":"https://api.github.com/users/jonschlinkert/repos","events_url":"https://api.github.com/users/jonschlinkert/events{/privacy}","received_events_url":"https://api.github.com/users/jonschlinkert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-10T06:02:12Z","updated_at":"2016-08-11T01:03:03Z","closed_at":null,"body":"I think we should change this API to be stupid simple and not expose methods. Here's how it would work:\r\n\r\n```js\r\nvar argv = require('macro-store')(process.argv.slice(2));\r\nvar args = require('yargs-parser')(argv);\r\n```\r\n\r\nmacro-store would determine if a macro is being stored, or if the first argument on `process.argv` is the key of a stored macro. If it is, then macro store would return the stored arguments array.\r\n\r\nThis way macros are used transparently before any processing by the application, and you turn macro-store into a library that can be used with every CLI in node.js.\r\n"},"comment":{"url":"https://api.github.com/repos/doowb/macro-store/issues/comments/239049521","html_url":"https://github.com/doowb/macro-store/issues/1#issuecomment-239049521","issue_url":"https://api.github.com/repos/doowb/macro-store/issues/1","id":239049521,"user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T01:03:03Z","updated_at":"2016-08-11T01:03:03Z","body":"Updated with what we discussed.\r\n\r\nScreenshots for docs:\r\n\r\n### Setting\r\n\r\n![image](https://cloud.githubusercontent.com/assets/995160/17576116/6b11e06e-5f3d-11e6-8019-6ad574c5fc16.png)\r\n\r\n\r\n### Getting multiple\r\n\r\n![image](https://cloud.githubusercontent.com/assets/995160/17576131/8940e558-5f3d-11e6-8a57-20bf52328fe0.png)\r\n\r\n### Deleting one\r\n\r\n![image](https://cloud.githubusercontent.com/assets/995160/17576151/aa2e14ac-5f3d-11e6-9a1f-2622264f1be2.png)\r\n\r\n\r\n### Deleting all\r\n\r\n![image](https://cloud.githubusercontent.com/assets/995160/17576156/bfdec8fa-5f3d-11e6-8947-2f4570b695ee.png)\r\n"}}
{"actor":{"display_login":"doowb"}}