{"action":"created","comment":{"url":"https://api.github.com/repos/aiidateam/aiida_core/pulls/comments/188098860","pull_request_review_id":120010363,"id":188098860,"diff_hunk":"@@ -232,79 +231,69 @@ def cat(self, *args):\n             else:\n                 raise\n \n-\n-class _Show(VerdiCommand):\n-    \"\"\"\n-    Show node information (pk, uuid, class, inputs and outputs)\n-    \"\"\"\n+class _Show(VerdiCommandWithSubcommands):\n \n     def run(self, *args):\n-        \"\"\"\n-        Show node information.\n-        \"\"\"\n-        import argparse\n-        from aiida.common.exceptions import NotExistent\n-\n-        parser = argparse.ArgumentParser(\n-            prog=self.get_full_command_name(),\n-            description='Show information of a node.')\n-        parser.add_argument('pk', type=int, default=None, nargs=\"+\",\n-                            help=\"ID of the node.\")\n-        parser.add_argument('--print-groups', action='store_true',\n-                            dest='print_groups', default=False,\n-                            help=\"Show groups containing the nodes.\")\n-        parser.add_argument('--no-print-groups', '--dont-print-groups',\n-                            action='store_false', dest='print_groups',\n-                            default=False,\n-                            help=\"Do not show groups containing the nodes\"\n-                                 \"output. Default behaviour.\")\n-\n-        args = list(args)\n-        parsed_args = parser.parse_args(args)\n-\n-        if not is_dbenv_loaded():\n-            load_dbenv()\n-\n-        for pk in parsed_args.pk:\n-            try:\n-                n = load_node(pk)\n-                self.print_node_info(n, print_groups=parsed_args.print_groups)\n-            except NotExistent as e:\n-                print >> sys.stderr, e.message\n-                sys.exit(1)\n+        verdi()\n+\n+@node.command('show')\n+@click.argument('identifiers', type=str, nargs=-1)\n+@click.option('--uuid', 'uuid', flag_value=True,\n+              help=\"If activated the identifier is UUID, \"\n+                   \"otherwise it is a pk/id..\")","path":"aiida/cmdline/commands/node.py","position":76,"original_position":76,"commit_id":"d937e3d12653db1338411b7ec0af5cbadcee4029","original_commit_id":"d937e3d12653db1338411b7ec0af5cbadcee4029","user":{"login":"giovannipizzi","id":16132028,"avatar_url":"https://avatars0.githubusercontent.com/u/16132028?v=4","gravatar_id":"","url":"https://api.github.com/users/giovannipizzi","html_url":"https://github.com/giovannipizzi","followers_url":"https://api.github.com/users/giovannipizzi/followers","following_url":"https://api.github.com/users/giovannipizzi/following{/other_user}","gists_url":"https://api.github.com/users/giovannipizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannipizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannipizzi/subscriptions","organizations_url":"https://api.github.com/users/giovannipizzi/orgs","repos_url":"https://api.github.com/users/giovannipizzi/repos","events_url":"https://api.github.com/users/giovannipizzi/events{/privacy}","received_events_url":"https://api.github.com/users/giovannipizzi/received_events","type":"User","site_admin":false},"body":"remove a dot","created_at":"2018-05-14T21:07:42Z","updated_at":"2018-05-14T21:13:27Z","html_url":"https://github.com/aiidateam/aiida_core/pull/1536#discussion_r188098860","pull_request_url":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/aiidateam/aiida_core/pulls/comments/188098860"},"html":{"href":"https://github.com/aiidateam/aiida_core/pull/1536#discussion_r188098860"},"pull_request":{"href":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536"}}},"pull_request":{"url":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536","id":187857111,"html_url":"https://github.com/aiidateam/aiida_core/pull/1536","diff_url":"https://github.com/aiidateam/aiida_core/pull/1536.diff","patch_url":"https://github.com/aiidateam/aiida_core/pull/1536.patch","issue_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1536","number":1536,"state":"open","locked":false,"title":"\"verdi node show\" now accepts also uuid as identifier & uses click","user":{"login":"szoupanos","id":24694976,"avatar_url":"https://avatars0.githubusercontent.com/u/24694976?v=4","gravatar_id":"","url":"https://api.github.com/users/szoupanos","html_url":"https://github.com/szoupanos","followers_url":"https://api.github.com/users/szoupanos/followers","following_url":"https://api.github.com/users/szoupanos/following{/other_user}","gists_url":"https://api.github.com/users/szoupanos/gists{/gist_id}","starred_url":"https://api.github.com/users/szoupanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szoupanos/subscriptions","organizations_url":"https://api.github.com/users/szoupanos/orgs","repos_url":"https://api.github.com/users/szoupanos/repos","events_url":"https://api.github.com/users/szoupanos/events{/privacy}","received_events_url":"https://api.github.com/users/szoupanos/received_events","type":"User","site_admin":false},"body":"This is a fix for issue #1515\r\nThe -uuid option passing is not global - I will look at it later if there is time (after fixing other bugs - not related to this)\r\n\r\nSpyros","created_at":"2018-05-14T15:02:21Z","updated_at":"2018-05-14T21:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee8470fcac1e82da5e4799cb731f337628ff492c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sphuber","id":6992332,"avatar_url":"https://avatars3.githubusercontent.com/u/6992332?v=4","gravatar_id":"","url":"https://api.github.com/users/sphuber","html_url":"https://github.com/sphuber","followers_url":"https://api.github.com/users/sphuber/followers","following_url":"https://api.github.com/users/sphuber/following{/other_user}","gists_url":"https://api.github.com/users/sphuber/gists{/gist_id}","starred_url":"https://api.github.com/users/sphuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphuber/subscriptions","organizations_url":"https://api.github.com/users/sphuber/orgs","repos_url":"https://api.github.com/users/sphuber/repos","events_url":"https://api.github.com/users/sphuber/events{/privacy}","received_events_url":"https://api.github.com/users/sphuber/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536/commits","review_comments_url":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536/comments","review_comment_url":"https://api.github.com/repos/aiidateam/aiida_core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/1536/comments","statuses_url":"https://api.github.com/repos/aiidateam/aiida_core/statuses/d937e3d12653db1338411b7ec0af5cbadcee4029","head":{"label":"szoupanos:issue_1515_b","ref":"issue_1515_b","sha":"d937e3d12653db1338411b7ec0af5cbadcee4029","user":{"login":"szoupanos","id":24694976,"avatar_url":"https://avatars0.githubusercontent.com/u/24694976?v=4","gravatar_id":"","url":"https://api.github.com/users/szoupanos","html_url":"https://github.com/szoupanos","followers_url":"https://api.github.com/users/szoupanos/followers","following_url":"https://api.github.com/users/szoupanos/following{/other_user}","gists_url":"https://api.github.com/users/szoupanos/gists{/gist_id}","starred_url":"https://api.github.com/users/szoupanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szoupanos/subscriptions","organizations_url":"https://api.github.com/users/szoupanos/orgs","repos_url":"https://api.github.com/users/szoupanos/repos","events_url":"https://api.github.com/users/szoupanos/events{/privacy}","received_events_url":"https://api.github.com/users/szoupanos/received_events","type":"User","site_admin":false},"repo":{"id":77237515,"name":"aiida_core","full_name":"szoupanos/aiida_core","owner":{"login":"szoupanos","id":24694976,"avatar_url":"https://avatars0.githubusercontent.com/u/24694976?v=4","gravatar_id":"","url":"https://api.github.com/users/szoupanos","html_url":"https://github.com/szoupanos","followers_url":"https://api.github.com/users/szoupanos/followers","following_url":"https://api.github.com/users/szoupanos/following{/other_user}","gists_url":"https://api.github.com/users/szoupanos/gists{/gist_id}","starred_url":"https://api.github.com/users/szoupanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szoupanos/subscriptions","organizations_url":"https://api.github.com/users/szoupanos/orgs","repos_url":"https://api.github.com/users/szoupanos/repos","events_url":"https://api.github.com/users/szoupanos/events{/privacy}","received_events_url":"https://api.github.com/users/szoupanos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szoupanos/aiida_core","description":"The official repository for the AiiDA code","fork":true,"url":"https://api.github.com/repos/szoupanos/aiida_core","forks_url":"https://api.github.com/repos/szoupanos/aiida_core/forks","keys_url":"https://api.github.com/repos/szoupanos/aiida_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szoupanos/aiida_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szoupanos/aiida_core/teams","hooks_url":"https://api.github.com/repos/szoupanos/aiida_core/hooks","issue_events_url":"https://api.github.com/repos/szoupanos/aiida_core/issues/events{/number}","events_url":"https://api.github.com/repos/szoupanos/aiida_core/events","assignees_url":"https://api.github.com/repos/szoupanos/aiida_core/assignees{/user}","branches_url":"https://api.github.com/repos/szoupanos/aiida_core/branches{/branch}","tags_url":"https://api.github.com/repos/szoupanos/aiida_core/tags","blobs_url":"https://api.github.com/repos/szoupanos/aiida_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szoupanos/aiida_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szoupanos/aiida_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/szoupanos/aiida_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szoupanos/aiida_core/statuses/{sha}","languages_url":"https://api.github.com/repos/szoupanos/aiida_core/languages","stargazers_url":"https://api.github.com/repos/szoupanos/aiida_core/stargazers","contributors_url":"https://api.github.com/repos/szoupanos/aiida_core/contributors","subscribers_url":"https://api.github.com/repos/szoupanos/aiida_core/subscribers","subscription_url":"https://api.github.com/repos/szoupanos/aiida_core/subscription","commits_url":"https://api.github.com/repos/szoupanos/aiida_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/szoupanos/aiida_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/szoupanos/aiida_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/szoupanos/aiida_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/szoupanos/aiida_core/contents/{+path}","compare_url":"https://api.github.com/repos/szoupanos/aiida_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szoupanos/aiida_core/merges","archive_url":"https://api.github.com/repos/szoupanos/aiida_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szoupanos/aiida_core/downloads","issues_url":"https://api.github.com/repos/szoupanos/aiida_core/issues{/number}","pulls_url":"https://api.github.com/repos/szoupanos/aiida_core/pulls{/number}","milestones_url":"https://api.github.com/repos/szoupanos/aiida_core/milestones{/number}","notifications_url":"https://api.github.com/repos/szoupanos/aiida_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szoupanos/aiida_core/labels{/name}","releases_url":"https://api.github.com/repos/szoupanos/aiida_core/releases{/id}","deployments_url":"https://api.github.com/repos/szoupanos/aiida_core/deployments","created_at":"2016-12-23T16:28:00Z","updated_at":"2018-05-14T17:49:43Z","pushed_at":"2018-05-14T18:07:13Z","git_url":"git://github.com/szoupanos/aiida_core.git","ssh_url":"git@github.com:szoupanos/aiida_core.git","clone_url":"https://github.com/szoupanos/aiida_core.git","svn_url":"https://github.com/szoupanos/aiida_core","homepage":null,"size":44838,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"aiidateam:release_v0.12.1","ref":"release_v0.12.1","sha":"07c83bc5675ba013f29d8b79206590830f419b14","user":{"login":"aiidateam","id":22181836,"avatar_url":"https://avatars3.githubusercontent.com/u/22181836?v=4","gravatar_id":"","url":"https://api.github.com/users/aiidateam","html_url":"https://github.com/aiidateam","followers_url":"https://api.github.com/users/aiidateam/followers","following_url":"https://api.github.com/users/aiidateam/following{/other_user}","gists_url":"https://api.github.com/users/aiidateam/gists{/gist_id}","starred_url":"https://api.github.com/users/aiidateam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiidateam/subscriptions","organizations_url":"https://api.github.com/users/aiidateam/orgs","repos_url":"https://api.github.com/users/aiidateam/repos","events_url":"https://api.github.com/users/aiidateam/events{/privacy}","received_events_url":"https://api.github.com/users/aiidateam/received_events","type":"Organization","site_admin":false},"repo":{"id":77234579,"name":"aiida_core","full_name":"aiidateam/aiida_core","owner":{"login":"aiidateam","id":22181836,"avatar_url":"https://avatars3.githubusercontent.com/u/22181836?v=4","gravatar_id":"","url":"https://api.github.com/users/aiidateam","html_url":"https://github.com/aiidateam","followers_url":"https://api.github.com/users/aiidateam/followers","following_url":"https://api.github.com/users/aiidateam/following{/other_user}","gists_url":"https://api.github.com/users/aiidateam/gists{/gist_id}","starred_url":"https://api.github.com/users/aiidateam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiidateam/subscriptions","organizations_url":"https://api.github.com/users/aiidateam/orgs","repos_url":"https://api.github.com/users/aiidateam/repos","events_url":"https://api.github.com/users/aiidateam/events{/privacy}","received_events_url":"https://api.github.com/users/aiidateam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aiidateam/aiida_core","description":"The official repository for the AiiDA code","fork":false,"url":"https://api.github.com/repos/aiidateam/aiida_core","forks_url":"https://api.github.com/repos/aiidateam/aiida_core/forks","keys_url":"https://api.github.com/repos/aiidateam/aiida_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aiidateam/aiida_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aiidateam/aiida_core/teams","hooks_url":"https://api.github.com/repos/aiidateam/aiida_core/hooks","issue_events_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/events{/number}","events_url":"https://api.github.com/repos/aiidateam/aiida_core/events","assignees_url":"https://api.github.com/repos/aiidateam/aiida_core/assignees{/user}","branches_url":"https://api.github.com/repos/aiidateam/aiida_core/branches{/branch}","tags_url":"https://api.github.com/repos/aiidateam/aiida_core/tags","blobs_url":"https://api.github.com/repos/aiidateam/aiida_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aiidateam/aiida_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aiidateam/aiida_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/aiidateam/aiida_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aiidateam/aiida_core/statuses/{sha}","languages_url":"https://api.github.com/repos/aiidateam/aiida_core/languages","stargazers_url":"https://api.github.com/repos/aiidateam/aiida_core/stargazers","contributors_url":"https://api.github.com/repos/aiidateam/aiida_core/contributors","subscribers_url":"https://api.github.com/repos/aiidateam/aiida_core/subscribers","subscription_url":"https://api.github.com/repos/aiidateam/aiida_core/subscription","commits_url":"https://api.github.com/repos/aiidateam/aiida_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/aiidateam/aiida_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/aiidateam/aiida_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/aiidateam/aiida_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/aiidateam/aiida_core/contents/{+path}","compare_url":"https://api.github.com/repos/aiidateam/aiida_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aiidateam/aiida_core/merges","archive_url":"https://api.github.com/repos/aiidateam/aiida_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aiidateam/aiida_core/downloads","issues_url":"https://api.github.com/repos/aiidateam/aiida_core/issues{/number}","pulls_url":"https://api.github.com/repos/aiidateam/aiida_core/pulls{/number}","milestones_url":"https://api.github.com/repos/aiidateam/aiida_core/milestones{/number}","notifications_url":"https://api.github.com/repos/aiidateam/aiida_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aiidateam/aiida_core/labels{/name}","releases_url":"https://api.github.com/repos/aiidateam/aiida_core/releases{/id}","deployments_url":"https://api.github.com/repos/aiidateam/aiida_core/deployments","created_at":"2016-12-23T15:38:21Z","updated_at":"2018-05-14T21:05:15Z","pushed_at":"2018-05-14T21:05:13Z","git_url":"git://github.com/aiidateam/aiida_core.git","ssh_url":"git@github.com:aiidateam/aiida_core.git","clone_url":"https://github.com/aiidateam/aiida_core.git","svn_url":"https://github.com/aiidateam/aiida_core","homepage":null,"size":45147,"stargazers_count":62,"watchers_count":62,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":164,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":46,"open_issues":164,"watchers":62,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536"},"html":{"href":"https://github.com/aiidateam/aiida_core/pull/1536"},"issue":{"href":"https://api.github.com/repos/aiidateam/aiida_core/issues/1536"},"comments":{"href":"https://api.github.com/repos/aiidateam/aiida_core/issues/1536/comments"},"review_comments":{"href":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536/comments"},"review_comment":{"href":"https://api.github.com/repos/aiidateam/aiida_core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aiidateam/aiida_core/pulls/1536/commits"},"statuses":{"href":"https://api.github.com/repos/aiidateam/aiida_core/statuses/d937e3d12653db1338411b7ec0af5cbadcee4029"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"giovannipizzi"}}