{"action":"opened","issue":{"url":"https://api.github.com/repos/ccpem/mrcfile/issues/3","repository_url":"https://api.github.com/repos/ccpem/mrcfile","labels_url":"https://api.github.com/repos/ccpem/mrcfile/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ccpem/mrcfile/issues/3/comments","events_url":"https://api.github.com/repos/ccpem/mrcfile/issues/3/events","html_url":"https://github.com/ccpem/mrcfile/issues/3","id":281813788,"number":3,"title":"it'd be handy to have validator available from the command line","user":{"login":"wojdyr","id":491873,"avatar_url":"https://avatars3.githubusercontent.com/u/491873?v=4","gravatar_id":"","url":"https://api.github.com/users/wojdyr","html_url":"https://github.com/wojdyr","followers_url":"https://api.github.com/users/wojdyr/followers","following_url":"https://api.github.com/users/wojdyr/following{/other_user}","gists_url":"https://api.github.com/users/wojdyr/gists{/gist_id}","starred_url":"https://api.github.com/users/wojdyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojdyr/subscriptions","organizations_url":"https://api.github.com/users/wojdyr/orgs","repos_url":"https://api.github.com/users/wojdyr/repos","events_url":"https://api.github.com/users/wojdyr/events{/privacy}","received_events_url":"https://api.github.com/users/wojdyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-13T16:32:24Z","updated_at":"2017-12-13T16:32:24Z","closed_at":null,"author_association":"NONE","body":"For example you could throw in `__main__.py` file:\r\n```py\r\nimport sys\r\nfrom .__init__ import validate\r\n\r\nsys.exit(0 if all(validate(path) for path in sys.argv[1:]) else 1)\r\n```\r\n\r\nand then one could validate a map as:\r\n\r\n    $ python -m mrcfile my.map"}}
{"actor":{"display_login":"wojdyr"}}