{"action":"created","comment":{"url":"https://api.github.com/repos/relution-io/relution-cli/pulls/comments/65848602","id":65848602,"diff_hunk":"@@ -135,5 +148,29 @@ export /**\n   add(path?: string): Observable<any> {\n     return this.helperAdd.add();\n   }\n+  /**\n+   * check if the connection add command is disabled\n+   */\n+  addEnabled(): boolean {\n+    if (!RxFs.exist(`${process.cwd()}/connections`)) {\n+      return false;\n+    }\n+    if (!this.userRc.server.length) {\n+      return false;\n+    }\n+    return true;\n+  }\n+  /**\n+   * return why is is not enabld\n+   */\n+  addWhyDisabled(): string {\n \n+    if (!RxFs.exist(`${process.cwd()}/connections`)) {\n+      return `Folder Connections not exist in ${process.cwd()}.`;\n+    }\n+\n+    if (!this.userRc.server.length) {","path":"src/commands/Connection.ts","position":79,"original_position":79,"commit_id":"f976bcccd03fc5f12d023f4d93e82e1bac968e18","original_commit_id":"f976bcccd03fc5f12d023f4d93e82e1bac968e18","user":{"login":"t-beckmann","id":3601625,"avatar_url":"https://avatars.githubusercontent.com/u/3601625?v=3","gravatar_id":"","url":"https://api.github.com/users/t-beckmann","html_url":"https://github.com/t-beckmann","followers_url":"https://api.github.com/users/t-beckmann/followers","following_url":"https://api.github.com/users/t-beckmann/following{/other_user}","gists_url":"https://api.github.com/users/t-beckmann/gists{/gist_id}","starred_url":"https://api.github.com/users/t-beckmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-beckmann/subscriptions","organizations_url":"https://api.github.com/users/t-beckmann/orgs","repos_url":"https://api.github.com/users/t-beckmann/repos","events_url":"https://api.github.com/users/t-beckmann/events{/privacy}","received_events_url":"https://api.github.com/users/t-beckmann/received_events","type":"User","site_admin":false},"body":"Dieser check kann vor dem exists check.","created_at":"2016-06-06T07:48:28Z","updated_at":"2016-06-06T07:48:28Z","html_url":"https://github.com/relution-io/relution-cli/pull/2#discussion_r65848602","pull_request_url":"https://api.github.com/repos/relution-io/relution-cli/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/relution-io/relution-cli/pulls/comments/65848602"},"html":{"href":"https://github.com/relution-io/relution-cli/pull/2#discussion_r65848602"},"pull_request":{"href":"https://api.github.com/repos/relution-io/relution-cli/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/relution-io/relution-cli/pulls/2","id":72661315,"html_url":"https://github.com/relution-io/relution-cli/pull/2","diff_url":"https://github.com/relution-io/relution-cli/pull/2.diff","patch_url":"https://github.com/relution-io/relution-cli/pull/2.patch","issue_url":"https://api.github.com/repos/relution-io/relution-cli/issues/2","number":2,"state":"open","locked":false,"title":"Feature/disable command","user":{"login":"DrMabuse23","id":797537,"avatar_url":"https://avatars.githubusercontent.com/u/797537?v=3","gravatar_id":"","url":"https://api.github.com/users/DrMabuse23","html_url":"https://github.com/DrMabuse23","followers_url":"https://api.github.com/users/DrMabuse23/followers","following_url":"https://api.github.com/users/DrMabuse23/following{/other_user}","gists_url":"https://api.github.com/users/DrMabuse23/gists{/gist_id}","starred_url":"https://api.github.com/users/DrMabuse23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrMabuse23/subscriptions","organizations_url":"https://api.github.com/users/DrMabuse23/orgs","repos_url":"https://api.github.com/users/DrMabuse23/repos","events_url":"https://api.github.com/users/DrMabuse23/events{/privacy}","received_events_url":"https://api.github.com/users/DrMabuse23/received_events","type":"User","site_admin":false},"body":"Add a logic for enabled/disable command","created_at":"2016-06-06T06:28:06Z","updated_at":"2016-06-06T07:48:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df7f222b4f4404a93b50b9983ba6ac00a7c531c0","assignee":{"login":"t-beckmann","id":3601625,"avatar_url":"https://avatars.githubusercontent.com/u/3601625?v=3","gravatar_id":"","url":"https://api.github.com/users/t-beckmann","html_url":"https://github.com/t-beckmann","followers_url":"https://api.github.com/users/t-beckmann/followers","following_url":"https://api.github.com/users/t-beckmann/following{/other_user}","gists_url":"https://api.github.com/users/t-beckmann/gists{/gist_id}","starred_url":"https://api.github.com/users/t-beckmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-beckmann/subscriptions","organizations_url":"https://api.github.com/users/t-beckmann/orgs","repos_url":"https://api.github.com/users/t-beckmann/repos","events_url":"https://api.github.com/users/t-beckmann/events{/privacy}","received_events_url":"https://api.github.com/users/t-beckmann/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/relution-io/relution-cli/pulls/2/commits","review_comments_url":"https://api.github.com/repos/relution-io/relution-cli/pulls/2/comments","review_comment_url":"https://api.github.com/repos/relution-io/relution-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/relution-io/relution-cli/issues/2/comments","statuses_url":"https://api.github.com/repos/relution-io/relution-cli/statuses/f976bcccd03fc5f12d023f4d93e82e1bac968e18","head":{"label":"relution-io:feature/disable-command","ref":"feature/disable-command","sha":"f976bcccd03fc5f12d023f4d93e82e1bac968e18","user":{"login":"relution-io","id":18610367,"avatar_url":"https://avatars.githubusercontent.com/u/18610367?v=3","gravatar_id":"","url":"https://api.github.com/users/relution-io","html_url":"https://github.com/relution-io","followers_url":"https://api.github.com/users/relution-io/followers","following_url":"https://api.github.com/users/relution-io/following{/other_user}","gists_url":"https://api.github.com/users/relution-io/gists{/gist_id}","starred_url":"https://api.github.com/users/relution-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relution-io/subscriptions","organizations_url":"https://api.github.com/users/relution-io/orgs","repos_url":"https://api.github.com/users/relution-io/repos","events_url":"https://api.github.com/users/relution-io/events{/privacy}","received_events_url":"https://api.github.com/users/relution-io/received_events","type":"Organization","site_admin":false},"repo":{"id":57212640,"name":"relution-cli","full_name":"relution-io/relution-cli","owner":{"login":"relution-io","id":18610367,"avatar_url":"https://avatars.githubusercontent.com/u/18610367?v=3","gravatar_id":"","url":"https://api.github.com/users/relution-io","html_url":"https://github.com/relution-io","followers_url":"https://api.github.com/users/relution-io/followers","following_url":"https://api.github.com/users/relution-io/following{/other_user}","gists_url":"https://api.github.com/users/relution-io/gists{/gist_id}","starred_url":"https://api.github.com/users/relution-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relution-io/subscriptions","organizations_url":"https://api.github.com/users/relution-io/orgs","repos_url":"https://api.github.com/users/relution-io/repos","events_url":"https://api.github.com/users/relution-io/events{/privacy}","received_events_url":"https://api.github.com/users/relution-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relution-io/relution-cli","description":"","fork":false,"url":"https://api.github.com/repos/relution-io/relution-cli","forks_url":"https://api.github.com/repos/relution-io/relution-cli/forks","keys_url":"https://api.github.com/repos/relution-io/relution-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relution-io/relution-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relution-io/relution-cli/teams","hooks_url":"https://api.github.com/repos/relution-io/relution-cli/hooks","issue_events_url":"https://api.github.com/repos/relution-io/relution-cli/issues/events{/number}","events_url":"https://api.github.com/repos/relution-io/relution-cli/events","assignees_url":"https://api.github.com/repos/relution-io/relution-cli/assignees{/user}","branches_url":"https://api.github.com/repos/relution-io/relution-cli/branches{/branch}","tags_url":"https://api.github.com/repos/relution-io/relution-cli/tags","blobs_url":"https://api.github.com/repos/relution-io/relution-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relution-io/relution-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relution-io/relution-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/relution-io/relution-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relution-io/relution-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/relution-io/relution-cli/languages","stargazers_url":"https://api.github.com/repos/relution-io/relution-cli/stargazers","contributors_url":"https://api.github.com/repos/relution-io/relution-cli/contributors","subscribers_url":"https://api.github.com/repos/relution-io/relution-cli/subscribers","subscription_url":"https://api.github.com/repos/relution-io/relution-cli/subscription","commits_url":"https://api.github.com/repos/relution-io/relution-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/relution-io/relution-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/relution-io/relution-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/relution-io/relution-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/relution-io/relution-cli/contents/{+path}","compare_url":"https://api.github.com/repos/relution-io/relution-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relution-io/relution-cli/merges","archive_url":"https://api.github.com/repos/relution-io/relution-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relution-io/relution-cli/downloads","issues_url":"https://api.github.com/repos/relution-io/relution-cli/issues{/number}","pulls_url":"https://api.github.com/repos/relution-io/relution-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/relution-io/relution-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/relution-io/relution-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relution-io/relution-cli/labels{/name}","releases_url":"https://api.github.com/repos/relution-io/relution-cli/releases{/id}","deployments_url":"https://api.github.com/repos/relution-io/relution-cli/deployments","created_at":"2016-04-27T12:44:38Z","updated_at":"2016-05-17T17:40:17Z","pushed_at":"2016-06-06T07:40:36Z","git_url":"git://github.com/relution-io/relution-cli.git","ssh_url":"git@github.com:relution-io/relution-cli.git","clone_url":"https://github.com/relution-io/relution-cli.git","svn_url":"https://github.com/relution-io/relution-cli","homepage":null,"size":980,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"relution-io:master","ref":"master","sha":"f02b5086c5dc1afb4846ed21fe28df96030cb40e","user":{"login":"relution-io","id":18610367,"avatar_url":"https://avatars.githubusercontent.com/u/18610367?v=3","gravatar_id":"","url":"https://api.github.com/users/relution-io","html_url":"https://github.com/relution-io","followers_url":"https://api.github.com/users/relution-io/followers","following_url":"https://api.github.com/users/relution-io/following{/other_user}","gists_url":"https://api.github.com/users/relution-io/gists{/gist_id}","starred_url":"https://api.github.com/users/relution-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relution-io/subscriptions","organizations_url":"https://api.github.com/users/relution-io/orgs","repos_url":"https://api.github.com/users/relution-io/repos","events_url":"https://api.github.com/users/relution-io/events{/privacy}","received_events_url":"https://api.github.com/users/relution-io/received_events","type":"Organization","site_admin":false},"repo":{"id":57212640,"name":"relution-cli","full_name":"relution-io/relution-cli","owner":{"login":"relution-io","id":18610367,"avatar_url":"https://avatars.githubusercontent.com/u/18610367?v=3","gravatar_id":"","url":"https://api.github.com/users/relution-io","html_url":"https://github.com/relution-io","followers_url":"https://api.github.com/users/relution-io/followers","following_url":"https://api.github.com/users/relution-io/following{/other_user}","gists_url":"https://api.github.com/users/relution-io/gists{/gist_id}","starred_url":"https://api.github.com/users/relution-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relution-io/subscriptions","organizations_url":"https://api.github.com/users/relution-io/orgs","repos_url":"https://api.github.com/users/relution-io/repos","events_url":"https://api.github.com/users/relution-io/events{/privacy}","received_events_url":"https://api.github.com/users/relution-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relution-io/relution-cli","description":"","fork":false,"url":"https://api.github.com/repos/relution-io/relution-cli","forks_url":"https://api.github.com/repos/relution-io/relution-cli/forks","keys_url":"https://api.github.com/repos/relution-io/relution-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relution-io/relution-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relution-io/relution-cli/teams","hooks_url":"https://api.github.com/repos/relution-io/relution-cli/hooks","issue_events_url":"https://api.github.com/repos/relution-io/relution-cli/issues/events{/number}","events_url":"https://api.github.com/repos/relution-io/relution-cli/events","assignees_url":"https://api.github.com/repos/relution-io/relution-cli/assignees{/user}","branches_url":"https://api.github.com/repos/relution-io/relution-cli/branches{/branch}","tags_url":"https://api.github.com/repos/relution-io/relution-cli/tags","blobs_url":"https://api.github.com/repos/relution-io/relution-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relution-io/relution-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relution-io/relution-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/relution-io/relution-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relution-io/relution-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/relution-io/relution-cli/languages","stargazers_url":"https://api.github.com/repos/relution-io/relution-cli/stargazers","contributors_url":"https://api.github.com/repos/relution-io/relution-cli/contributors","subscribers_url":"https://api.github.com/repos/relution-io/relution-cli/subscribers","subscription_url":"https://api.github.com/repos/relution-io/relution-cli/subscription","commits_url":"https://api.github.com/repos/relution-io/relution-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/relution-io/relution-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/relution-io/relution-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/relution-io/relution-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/relution-io/relution-cli/contents/{+path}","compare_url":"https://api.github.com/repos/relution-io/relution-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relution-io/relution-cli/merges","archive_url":"https://api.github.com/repos/relution-io/relution-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relution-io/relution-cli/downloads","issues_url":"https://api.github.com/repos/relution-io/relution-cli/issues{/number}","pulls_url":"https://api.github.com/repos/relution-io/relution-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/relution-io/relution-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/relution-io/relution-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relution-io/relution-cli/labels{/name}","releases_url":"https://api.github.com/repos/relution-io/relution-cli/releases{/id}","deployments_url":"https://api.github.com/repos/relution-io/relution-cli/deployments","created_at":"2016-04-27T12:44:38Z","updated_at":"2016-05-17T17:40:17Z","pushed_at":"2016-06-06T07:40:36Z","git_url":"git://github.com/relution-io/relution-cli.git","ssh_url":"git@github.com:relution-io/relution-cli.git","clone_url":"https://github.com/relution-io/relution-cli.git","svn_url":"https://github.com/relution-io/relution-cli","homepage":null,"size":980,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/relution-io/relution-cli/pulls/2"},"html":{"href":"https://github.com/relution-io/relution-cli/pull/2"},"issue":{"href":"https://api.github.com/repos/relution-io/relution-cli/issues/2"},"comments":{"href":"https://api.github.com/repos/relution-io/relution-cli/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/relution-io/relution-cli/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/relution-io/relution-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/relution-io/relution-cli/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/relution-io/relution-cli/statuses/f976bcccd03fc5f12d023f4d93e82e1bac968e18"}}}}
{"actor":{"display_login":"t-beckmann"}}