{"action":"created","comment":{"url":"https://api.github.com/repos/shelljs/shx/pulls/comments/75572926","id":75572926,"diff_hunk":"@@ -16,6 +18,25 @@ export const shx = (argv) => {\n     return EXIT_CODES.SHX_ERROR;\n   }\n \n+  // Load ShellJS plugins\n+  const CONFIG_PATH = path.join(process.cwd(), CONFIG_FILE);\n+  if (fs.existsSync(CONFIG_PATH)) {","path":"src/shx.js","position":18,"original_position":18,"commit_id":"5bd6cdfbf44c2ce57f122152a26e29a00ada5228","original_commit_id":"5bd6cdfbf44c2ce57f122152a26e29a00ada5228","user":{"login":"levithomason","id":5067638,"avatar_url":"https://avatars.githubusercontent.com/u/5067638?v=3","gravatar_id":"","url":"https://api.github.com/users/levithomason","html_url":"https://github.com/levithomason","followers_url":"https://api.github.com/users/levithomason/followers","following_url":"https://api.github.com/users/levithomason/following{/other_user}","gists_url":"https://api.github.com/users/levithomason/gists{/gist_id}","starred_url":"https://api.github.com/users/levithomason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levithomason/subscriptions","organizations_url":"https://api.github.com/users/levithomason/orgs","repos_url":"https://api.github.com/users/levithomason/repos","events_url":"https://api.github.com/users/levithomason/events{/privacy}","received_events_url":"https://api.github.com/users/levithomason/received_events","type":"User","site_admin":false},"body":"`fs.exists` is [deprecated](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback), should wrap `fs.accessSync()` in a try catch instead or use the async version if possible.","created_at":"2016-08-20T05:15:59Z","updated_at":"2016-08-20T05:15:59Z","html_url":"https://github.com/shelljs/shx/pull/78#discussion_r75572926","pull_request_url":"https://api.github.com/repos/shelljs/shx/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/shelljs/shx/pulls/comments/75572926"},"html":{"href":"https://github.com/shelljs/shx/pull/78#discussion_r75572926"},"pull_request":{"href":"https://api.github.com/repos/shelljs/shx/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/shelljs/shx/pulls/78","id":82064907,"html_url":"https://github.com/shelljs/shx/pull/78","diff_url":"https://github.com/shelljs/shx/pull/78.diff","patch_url":"https://github.com/shelljs/shx/pull/78.patch","issue_url":"https://api.github.com/repos/shelljs/shx/issues/78","number":78,"state":"open","locked":false,"title":"feat: support for ShellJS plugins","user":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"body":"This adds support for ShellJS plugins. This can be used by creating a config file for shx, `.shxrc.json` in the root of your package (assuming that you'll be running `shx` via npm scripts). The file should be formatted as such:\r\n\r\n```json\r\n{\r\n  \"plugins\": [\r\n    \"shelljs-plugin-foo\"\r\n  ]\r\n}\r\n```\r\n\r\nThis will load in the `shelljs-plugin-foo` plugin. This plugin must be required by the user as a dependency (or dev dependency) in the project, otherwise shx will fail for every command.\r\n\r\nOnce we officially support ShellJS plugins, we should update the README for shx to show plugin usage instructions.","created_at":"2016-08-20T01:31:02Z","updated_at":"2016-08-20T05:15:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78ee60ecceeb72b231c7c747af6c23a29a6935b2","assignee":{"login":"ariporad","id":1817508,"avatar_url":"https://avatars.githubusercontent.com/u/1817508?v=3","gravatar_id":"","url":"https://api.github.com/users/ariporad","html_url":"https://github.com/ariporad","followers_url":"https://api.github.com/users/ariporad/followers","following_url":"https://api.github.com/users/ariporad/following{/other_user}","gists_url":"https://api.github.com/users/ariporad/gists{/gist_id}","starred_url":"https://api.github.com/users/ariporad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariporad/subscriptions","organizations_url":"https://api.github.com/users/ariporad/orgs","repos_url":"https://api.github.com/users/ariporad/repos","events_url":"https://api.github.com/users/ariporad/events{/privacy}","received_events_url":"https://api.github.com/users/ariporad/received_events","type":"User","site_admin":false},"assignees":[{"login":"ariporad","id":1817508,"avatar_url":"https://avatars.githubusercontent.com/u/1817508?v=3","gravatar_id":"","url":"https://api.github.com/users/ariporad","html_url":"https://github.com/ariporad","followers_url":"https://api.github.com/users/ariporad/followers","following_url":"https://api.github.com/users/ariporad/following{/other_user}","gists_url":"https://api.github.com/users/ariporad/gists{/gist_id}","starred_url":"https://api.github.com/users/ariporad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariporad/subscriptions","organizations_url":"https://api.github.com/users/ariporad/orgs","repos_url":"https://api.github.com/users/ariporad/repos","events_url":"https://api.github.com/users/ariporad/events{/privacy}","received_events_url":"https://api.github.com/users/ariporad/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/shelljs/shx/pulls/78/commits","review_comments_url":"https://api.github.com/repos/shelljs/shx/pulls/78/comments","review_comment_url":"https://api.github.com/repos/shelljs/shx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shelljs/shx/issues/78/comments","statuses_url":"https://api.github.com/repos/shelljs/shx/statuses/5bd6cdfbf44c2ce57f122152a26e29a00ada5228","head":{"label":"shelljs:feat-plugins","ref":"feat-plugins","sha":"5bd6cdfbf44c2ce57f122152a26e29a00ada5228","user":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"repo":{"id":51710581,"name":"shx","full_name":"shelljs/shx","owner":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shelljs/shx","description":"Portable Shell Commands for Node","fork":false,"url":"https://api.github.com/repos/shelljs/shx","forks_url":"https://api.github.com/repos/shelljs/shx/forks","keys_url":"https://api.github.com/repos/shelljs/shx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shelljs/shx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shelljs/shx/teams","hooks_url":"https://api.github.com/repos/shelljs/shx/hooks","issue_events_url":"https://api.github.com/repos/shelljs/shx/issues/events{/number}","events_url":"https://api.github.com/repos/shelljs/shx/events","assignees_url":"https://api.github.com/repos/shelljs/shx/assignees{/user}","branches_url":"https://api.github.com/repos/shelljs/shx/branches{/branch}","tags_url":"https://api.github.com/repos/shelljs/shx/tags","blobs_url":"https://api.github.com/repos/shelljs/shx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shelljs/shx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shelljs/shx/git/refs{/sha}","trees_url":"https://api.github.com/repos/shelljs/shx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shelljs/shx/statuses/{sha}","languages_url":"https://api.github.com/repos/shelljs/shx/languages","stargazers_url":"https://api.github.com/repos/shelljs/shx/stargazers","contributors_url":"https://api.github.com/repos/shelljs/shx/contributors","subscribers_url":"https://api.github.com/repos/shelljs/shx/subscribers","subscription_url":"https://api.github.com/repos/shelljs/shx/subscription","commits_url":"https://api.github.com/repos/shelljs/shx/commits{/sha}","git_commits_url":"https://api.github.com/repos/shelljs/shx/git/commits{/sha}","comments_url":"https://api.github.com/repos/shelljs/shx/comments{/number}","issue_comment_url":"https://api.github.com/repos/shelljs/shx/issues/comments{/number}","contents_url":"https://api.github.com/repos/shelljs/shx/contents/{+path}","compare_url":"https://api.github.com/repos/shelljs/shx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shelljs/shx/merges","archive_url":"https://api.github.com/repos/shelljs/shx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shelljs/shx/downloads","issues_url":"https://api.github.com/repos/shelljs/shx/issues{/number}","pulls_url":"https://api.github.com/repos/shelljs/shx/pulls{/number}","milestones_url":"https://api.github.com/repos/shelljs/shx/milestones{/number}","notifications_url":"https://api.github.com/repos/shelljs/shx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shelljs/shx/labels{/name}","releases_url":"https://api.github.com/repos/shelljs/shx/releases{/id}","deployments_url":"https://api.github.com/repos/shelljs/shx/deployments","created_at":"2016-02-14T19:53:03Z","updated_at":"2016-08-18T00:04:33Z","pushed_at":"2016-08-20T01:31:02Z","git_url":"git://github.com/shelljs/shx.git","ssh_url":"git@github.com:shelljs/shx.git","clone_url":"https://github.com/shelljs/shx.git","svn_url":"https://github.com/shelljs/shx","homepage":null,"size":80,"stargazers_count":89,"watchers_count":89,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":89,"default_branch":"master"}},"base":{"label":"shelljs:master","ref":"master","sha":"c540bf5b5e234f4662dbbb129ec55bdd4d5d37a2","user":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"repo":{"id":51710581,"name":"shx","full_name":"shelljs/shx","owner":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shelljs/shx","description":"Portable Shell Commands for Node","fork":false,"url":"https://api.github.com/repos/shelljs/shx","forks_url":"https://api.github.com/repos/shelljs/shx/forks","keys_url":"https://api.github.com/repos/shelljs/shx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shelljs/shx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shelljs/shx/teams","hooks_url":"https://api.github.com/repos/shelljs/shx/hooks","issue_events_url":"https://api.github.com/repos/shelljs/shx/issues/events{/number}","events_url":"https://api.github.com/repos/shelljs/shx/events","assignees_url":"https://api.github.com/repos/shelljs/shx/assignees{/user}","branches_url":"https://api.github.com/repos/shelljs/shx/branches{/branch}","tags_url":"https://api.github.com/repos/shelljs/shx/tags","blobs_url":"https://api.github.com/repos/shelljs/shx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shelljs/shx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shelljs/shx/git/refs{/sha}","trees_url":"https://api.github.com/repos/shelljs/shx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shelljs/shx/statuses/{sha}","languages_url":"https://api.github.com/repos/shelljs/shx/languages","stargazers_url":"https://api.github.com/repos/shelljs/shx/stargazers","contributors_url":"https://api.github.com/repos/shelljs/shx/contributors","subscribers_url":"https://api.github.com/repos/shelljs/shx/subscribers","subscription_url":"https://api.github.com/repos/shelljs/shx/subscription","commits_url":"https://api.github.com/repos/shelljs/shx/commits{/sha}","git_commits_url":"https://api.github.com/repos/shelljs/shx/git/commits{/sha}","comments_url":"https://api.github.com/repos/shelljs/shx/comments{/number}","issue_comment_url":"https://api.github.com/repos/shelljs/shx/issues/comments{/number}","contents_url":"https://api.github.com/repos/shelljs/shx/contents/{+path}","compare_url":"https://api.github.com/repos/shelljs/shx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shelljs/shx/merges","archive_url":"https://api.github.com/repos/shelljs/shx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shelljs/shx/downloads","issues_url":"https://api.github.com/repos/shelljs/shx/issues{/number}","pulls_url":"https://api.github.com/repos/shelljs/shx/pulls{/number}","milestones_url":"https://api.github.com/repos/shelljs/shx/milestones{/number}","notifications_url":"https://api.github.com/repos/shelljs/shx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shelljs/shx/labels{/name}","releases_url":"https://api.github.com/repos/shelljs/shx/releases{/id}","deployments_url":"https://api.github.com/repos/shelljs/shx/deployments","created_at":"2016-02-14T19:53:03Z","updated_at":"2016-08-18T00:04:33Z","pushed_at":"2016-08-20T01:31:02Z","git_url":"git://github.com/shelljs/shx.git","ssh_url":"git@github.com:shelljs/shx.git","clone_url":"https://github.com/shelljs/shx.git","svn_url":"https://github.com/shelljs/shx","homepage":null,"size":80,"stargazers_count":89,"watchers_count":89,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shelljs/shx/pulls/78"},"html":{"href":"https://github.com/shelljs/shx/pull/78"},"issue":{"href":"https://api.github.com/repos/shelljs/shx/issues/78"},"comments":{"href":"https://api.github.com/repos/shelljs/shx/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/shelljs/shx/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/shelljs/shx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shelljs/shx/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/shelljs/shx/statuses/5bd6cdfbf44c2ce57f122152a26e29a00ada5228"}}}}
{"actor":{"display_login":"levithomason"}}