{"action":"closed","number":24,"pull_request":{"url":"https://api.github.com/repos/praekelt/jspot/pulls/24","id":29878183,"html_url":"https://github.com/praekelt/jspot/pull/24","diff_url":"https://github.com/praekelt/jspot/pull/24.diff","patch_url":"https://github.com/praekelt/jspot/pull/24.patch","issue_url":"https://api.github.com/repos/praekelt/jspot/issues/24","number":24,"state":"closed","locked":false,"title":"Allow external extractors to be plugged in via the cli","user":{"login":"justinvdm","id":1731223,"avatar_url":"https://avatars.githubusercontent.com/u/1731223?v=3","gravatar_id":"","url":"https://api.github.com/users/justinvdm","html_url":"https://github.com/justinvdm","followers_url":"https://api.github.com/users/justinvdm/followers","following_url":"https://api.github.com/users/justinvdm/following{/other_user}","gists_url":"https://api.github.com/users/justinvdm/gists{/gist_id}","starred_url":"https://api.github.com/users/justinvdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinvdm/subscriptions","organizations_url":"https://api.github.com/users/justinvdm/orgs","repos_url":"https://api.github.com/users/justinvdm/repos","events_url":"https://api.github.com/users/justinvdm/events{/privacy}","received_events_url":"https://api.github.com/users/justinvdm/received_events","type":"User","site_admin":false},"body":"From the discussion on #11, the plan is to allow external extractors to be plugged in via the cli. The command might look something like:\r\n\r\n```\r\n$ jspot extract foo.html bar.jst baz.js quux.hbs -e html:hbs -e jst:jspot-jst\r\n```\r\n\r\nWe could maybe have each `-e` first look for a bundled extractor (which I'd like to keep to just `js` and `hbs`, at least for now), and fall back to trying to require a module name (in the example above, `jspot-jst`). ","created_at":"2015-02-24T08:19:00Z","updated_at":"2015-02-24T09:36:55Z","closed_at":"2015-02-24T09:36:55Z","merged_at":"2015-02-24T09:36:55Z","merge_commit_sha":"cea37749bd003218d6d282948b819d120bca55cb","assignee":{"login":"justinvdm","id":1731223,"avatar_url":"https://avatars.githubusercontent.com/u/1731223?v=3","gravatar_id":"","url":"https://api.github.com/users/justinvdm","html_url":"https://github.com/justinvdm","followers_url":"https://api.github.com/users/justinvdm/followers","following_url":"https://api.github.com/users/justinvdm/following{/other_user}","gists_url":"https://api.github.com/users/justinvdm/gists{/gist_id}","starred_url":"https://api.github.com/users/justinvdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinvdm/subscriptions","organizations_url":"https://api.github.com/users/justinvdm/orgs","repos_url":"https://api.github.com/users/justinvdm/repos","events_url":"https://api.github.com/users/justinvdm/events{/privacy}","received_events_url":"https://api.github.com/users/justinvdm/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/jspot/pulls/24/commits","review_comments_url":"https://api.github.com/repos/praekelt/jspot/pulls/24/comments","review_comment_url":"https://api.github.com/repos/praekelt/jspot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/jspot/issues/24/comments","statuses_url":"https://api.github.com/repos/praekelt/jspot/statuses/cd510894133be69b06563fb1a58036deacb68a7e","head":{"label":"praekelt:feature/issue-24-allow-external-extractors-to-be-plugged-in-via-the-cli","ref":"feature/issue-24-allow-external-extractors-to-be-plugged-in-via-the-cli","sha":"cd510894133be69b06563fb1a58036deacb68a7e","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":17059493,"name":"jspot","full_name":"praekelt/jspot","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/jspot","description":"Extracts gettext strings from Javascript files into pot files","fork":false,"url":"https://api.github.com/repos/praekelt/jspot","forks_url":"https://api.github.com/repos/praekelt/jspot/forks","keys_url":"https://api.github.com/repos/praekelt/jspot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/jspot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/jspot/teams","hooks_url":"https://api.github.com/repos/praekelt/jspot/hooks","issue_events_url":"https://api.github.com/repos/praekelt/jspot/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/jspot/events","assignees_url":"https://api.github.com/repos/praekelt/jspot/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/jspot/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/jspot/tags","blobs_url":"https://api.github.com/repos/praekelt/jspot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/jspot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/jspot/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/jspot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/jspot/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/jspot/languages","stargazers_url":"https://api.github.com/repos/praekelt/jspot/stargazers","contributors_url":"https://api.github.com/repos/praekelt/jspot/contributors","subscribers_url":"https://api.github.com/repos/praekelt/jspot/subscribers","subscription_url":"https://api.github.com/repos/praekelt/jspot/subscription","commits_url":"https://api.github.com/repos/praekelt/jspot/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/jspot/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/jspot/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/jspot/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/jspot/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/jspot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/jspot/merges","archive_url":"https://api.github.com/repos/praekelt/jspot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/jspot/downloads","issues_url":"https://api.github.com/repos/praekelt/jspot/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/jspot/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/jspot/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/jspot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/jspot/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/jspot/releases{/id}","created_at":"2014-02-21T14:57:56Z","updated_at":"2015-02-24T09:36:55Z","pushed_at":"2015-02-24T09:36:54Z","git_url":"git://github.com/praekelt/jspot.git","ssh_url":"git@github.com:praekelt/jspot.git","clone_url":"https://github.com/praekelt/jspot.git","svn_url":"https://github.com/praekelt/jspot","homepage":null,"size":940,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":5,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"f1b1c58f93d82598bb072ad53e1fe15ebac4b159","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":17059493,"name":"jspot","full_name":"praekelt/jspot","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/jspot","description":"Extracts gettext strings from Javascript files into pot files","fork":false,"url":"https://api.github.com/repos/praekelt/jspot","forks_url":"https://api.github.com/repos/praekelt/jspot/forks","keys_url":"https://api.github.com/repos/praekelt/jspot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/jspot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/jspot/teams","hooks_url":"https://api.github.com/repos/praekelt/jspot/hooks","issue_events_url":"https://api.github.com/repos/praekelt/jspot/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/jspot/events","assignees_url":"https://api.github.com/repos/praekelt/jspot/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/jspot/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/jspot/tags","blobs_url":"https://api.github.com/repos/praekelt/jspot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/jspot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/jspot/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/jspot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/jspot/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/jspot/languages","stargazers_url":"https://api.github.com/repos/praekelt/jspot/stargazers","contributors_url":"https://api.github.com/repos/praekelt/jspot/contributors","subscribers_url":"https://api.github.com/repos/praekelt/jspot/subscribers","subscription_url":"https://api.github.com/repos/praekelt/jspot/subscription","commits_url":"https://api.github.com/repos/praekelt/jspot/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/jspot/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/jspot/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/jspot/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/jspot/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/jspot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/jspot/merges","archive_url":"https://api.github.com/repos/praekelt/jspot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/jspot/downloads","issues_url":"https://api.github.com/repos/praekelt/jspot/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/jspot/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/jspot/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/jspot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/jspot/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/jspot/releases{/id}","created_at":"2014-02-21T14:57:56Z","updated_at":"2015-02-24T09:36:55Z","pushed_at":"2015-02-24T09:36:54Z","git_url":"git://github.com/praekelt/jspot.git","ssh_url":"git@github.com:praekelt/jspot.git","clone_url":"https://github.com/praekelt/jspot.git","svn_url":"https://github.com/praekelt/jspot","homepage":null,"size":940,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/jspot/pulls/24"},"html":{"href":"https://github.com/praekelt/jspot/pull/24"},"issue":{"href":"https://api.github.com/repos/praekelt/jspot/issues/24"},"comments":{"href":"https://api.github.com/repos/praekelt/jspot/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/jspot/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/jspot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/jspot/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/jspot/statuses/cd510894133be69b06563fb1a58036deacb68a7e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"justinvdm","id":1731223,"avatar_url":"https://avatars.githubusercontent.com/u/1731223?v=3","gravatar_id":"","url":"https://api.github.com/users/justinvdm","html_url":"https://github.com/justinvdm","followers_url":"https://api.github.com/users/justinvdm/followers","following_url":"https://api.github.com/users/justinvdm/following{/other_user}","gists_url":"https://api.github.com/users/justinvdm/gists{/gist_id}","starred_url":"https://api.github.com/users/justinvdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinvdm/subscriptions","organizations_url":"https://api.github.com/users/justinvdm/orgs","repos_url":"https://api.github.com/users/justinvdm/repos","events_url":"https://api.github.com/users/justinvdm/events{/privacy}","received_events_url":"https://api.github.com/users/justinvdm/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"commits":3,"additions":131,"deletions":0,"changed_files":9}}