{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/20","id":36047327,"html_url":"https://github.com/MiniZinc/libminizinc/pull/20","diff_url":"https://github.com/MiniZinc/libminizinc/pull/20.diff","patch_url":"https://github.com/MiniZinc/libminizinc/pull/20.patch","issue_url":"https://api.github.com/repos/MiniZinc/libminizinc/issues/20","number":20,"state":"closed","locked":false,"title":"Allow mzn input from stdin","user":{"login":"skosch","id":554383,"avatar_url":"https://avatars.githubusercontent.com/u/554383?v=3","gravatar_id":"","url":"https://api.github.com/users/skosch","html_url":"https://github.com/skosch","followers_url":"https://api.github.com/users/skosch/followers","following_url":"https://api.github.com/users/skosch/following{/other_user}","gists_url":"https://api.github.com/users/skosch/gists{/gist_id}","starred_url":"https://api.github.com/users/skosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skosch/subscriptions","organizations_url":"https://api.github.com/users/skosch/orgs","repos_url":"https://api.github.com/users/skosch/repos","events_url":"https://api.github.com/users/skosch/events{/privacy}","received_events_url":"https://api.github.com/users/skosch/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI need to batch-convert mzn strings that are generated on the fly, which is easiest via stdio. I have added a flag `--input-from-stdin` (analogous to `--output-to-stdout`) that allows you to run e.g.\r\n\r\n    ./mzn2fzn --read-from-stdin < modelfile.mzn\r\n\r\nwhich will generate `output.fzn` and `output.ozn`.\r\n\r\nIf this feature is in scope for libminizinc, and if my implementation is reasonable (I'm not much of a C++ guy), feel free to merge this :) (Or reject it otherwise, no hard feelings.)","created_at":"2015-05-22T16:29:17Z","updated_at":"2015-07-03T10:59:28Z","closed_at":"2015-07-03T10:59:28Z","merged_at":null,"merge_commit_sha":"99175619e98acb65b8722883b091f2a0783d1df8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/20/commits","review_comments_url":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/20/comments","review_comment_url":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MiniZinc/libminizinc/issues/20/comments","statuses_url":"https://api.github.com/repos/MiniZinc/libminizinc/statuses/f684851d01f4fbdc914ddb42281afb462de7d74a","head":{"label":"skosch:master","ref":"master","sha":"f684851d01f4fbdc914ddb42281afb462de7d74a","user":{"login":"skosch","id":554383,"avatar_url":"https://avatars.githubusercontent.com/u/554383?v=3","gravatar_id":"","url":"https://api.github.com/users/skosch","html_url":"https://github.com/skosch","followers_url":"https://api.github.com/users/skosch/followers","following_url":"https://api.github.com/users/skosch/following{/other_user}","gists_url":"https://api.github.com/users/skosch/gists{/gist_id}","starred_url":"https://api.github.com/users/skosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skosch/subscriptions","organizations_url":"https://api.github.com/users/skosch/orgs","repos_url":"https://api.github.com/users/skosch/repos","events_url":"https://api.github.com/users/skosch/events{/privacy}","received_events_url":"https://api.github.com/users/skosch/received_events","type":"User","site_admin":false},"repo":{"id":36080899,"name":"libminizinc","full_name":"skosch/libminizinc","owner":{"login":"skosch","id":554383,"avatar_url":"https://avatars.githubusercontent.com/u/554383?v=3","gravatar_id":"","url":"https://api.github.com/users/skosch","html_url":"https://github.com/skosch","followers_url":"https://api.github.com/users/skosch/followers","following_url":"https://api.github.com/users/skosch/following{/other_user}","gists_url":"https://api.github.com/users/skosch/gists{/gist_id}","starred_url":"https://api.github.com/users/skosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skosch/subscriptions","organizations_url":"https://api.github.com/users/skosch/orgs","repos_url":"https://api.github.com/users/skosch/repos","events_url":"https://api.github.com/users/skosch/events{/privacy}","received_events_url":"https://api.github.com/users/skosch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skosch/libminizinc","description":"","fork":true,"url":"https://api.github.com/repos/skosch/libminizinc","forks_url":"https://api.github.com/repos/skosch/libminizinc/forks","keys_url":"https://api.github.com/repos/skosch/libminizinc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skosch/libminizinc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skosch/libminizinc/teams","hooks_url":"https://api.github.com/repos/skosch/libminizinc/hooks","issue_events_url":"https://api.github.com/repos/skosch/libminizinc/issues/events{/number}","events_url":"https://api.github.com/repos/skosch/libminizinc/events","assignees_url":"https://api.github.com/repos/skosch/libminizinc/assignees{/user}","branches_url":"https://api.github.com/repos/skosch/libminizinc/branches{/branch}","tags_url":"https://api.github.com/repos/skosch/libminizinc/tags","blobs_url":"https://api.github.com/repos/skosch/libminizinc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skosch/libminizinc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skosch/libminizinc/git/refs{/sha}","trees_url":"https://api.github.com/repos/skosch/libminizinc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skosch/libminizinc/statuses/{sha}","languages_url":"https://api.github.com/repos/skosch/libminizinc/languages","stargazers_url":"https://api.github.com/repos/skosch/libminizinc/stargazers","contributors_url":"https://api.github.com/repos/skosch/libminizinc/contributors","subscribers_url":"https://api.github.com/repos/skosch/libminizinc/subscribers","subscription_url":"https://api.github.com/repos/skosch/libminizinc/subscription","commits_url":"https://api.github.com/repos/skosch/libminizinc/commits{/sha}","git_commits_url":"https://api.github.com/repos/skosch/libminizinc/git/commits{/sha}","comments_url":"https://api.github.com/repos/skosch/libminizinc/comments{/number}","issue_comment_url":"https://api.github.com/repos/skosch/libminizinc/issues/comments{/number}","contents_url":"https://api.github.com/repos/skosch/libminizinc/contents/{+path}","compare_url":"https://api.github.com/repos/skosch/libminizinc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skosch/libminizinc/merges","archive_url":"https://api.github.com/repos/skosch/libminizinc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skosch/libminizinc/downloads","issues_url":"https://api.github.com/repos/skosch/libminizinc/issues{/number}","pulls_url":"https://api.github.com/repos/skosch/libminizinc/pulls{/number}","milestones_url":"https://api.github.com/repos/skosch/libminizinc/milestones{/number}","notifications_url":"https://api.github.com/repos/skosch/libminizinc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skosch/libminizinc/labels{/name}","releases_url":"https://api.github.com/repos/skosch/libminizinc/releases{/id}","created_at":"2015-05-22T15:52:09Z","updated_at":"2015-05-22T15:52:12Z","pushed_at":"2015-05-22T16:26:30Z","git_url":"git://github.com/skosch/libminizinc.git","ssh_url":"git@github.com:skosch/libminizinc.git","clone_url":"https://github.com/skosch/libminizinc.git","svn_url":"https://github.com/skosch/libminizinc","homepage":null,"size":6065,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MiniZinc:master","ref":"master","sha":"20207e1bfeaad44f909482d2b56c0883f38b04c7","user":{"login":"MiniZinc","id":4684397,"avatar_url":"https://avatars.githubusercontent.com/u/4684397?v=3","gravatar_id":"","url":"https://api.github.com/users/MiniZinc","html_url":"https://github.com/MiniZinc","followers_url":"https://api.github.com/users/MiniZinc/followers","following_url":"https://api.github.com/users/MiniZinc/following{/other_user}","gists_url":"https://api.github.com/users/MiniZinc/gists{/gist_id}","starred_url":"https://api.github.com/users/MiniZinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiniZinc/subscriptions","organizations_url":"https://api.github.com/users/MiniZinc/orgs","repos_url":"https://api.github.com/users/MiniZinc/repos","events_url":"https://api.github.com/users/MiniZinc/events{/privacy}","received_events_url":"https://api.github.com/users/MiniZinc/received_events","type":"Organization","site_admin":false},"repo":{"id":29562582,"name":"libminizinc","full_name":"MiniZinc/libminizinc","owner":{"login":"MiniZinc","id":4684397,"avatar_url":"https://avatars.githubusercontent.com/u/4684397?v=3","gravatar_id":"","url":"https://api.github.com/users/MiniZinc","html_url":"https://github.com/MiniZinc","followers_url":"https://api.github.com/users/MiniZinc/followers","following_url":"https://api.github.com/users/MiniZinc/following{/other_user}","gists_url":"https://api.github.com/users/MiniZinc/gists{/gist_id}","starred_url":"https://api.github.com/users/MiniZinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiniZinc/subscriptions","organizations_url":"https://api.github.com/users/MiniZinc/orgs","repos_url":"https://api.github.com/users/MiniZinc/repos","events_url":"https://api.github.com/users/MiniZinc/events{/privacy}","received_events_url":"https://api.github.com/users/MiniZinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MiniZinc/libminizinc","description":"","fork":false,"url":"https://api.github.com/repos/MiniZinc/libminizinc","forks_url":"https://api.github.com/repos/MiniZinc/libminizinc/forks","keys_url":"https://api.github.com/repos/MiniZinc/libminizinc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MiniZinc/libminizinc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MiniZinc/libminizinc/teams","hooks_url":"https://api.github.com/repos/MiniZinc/libminizinc/hooks","issue_events_url":"https://api.github.com/repos/MiniZinc/libminizinc/issues/events{/number}","events_url":"https://api.github.com/repos/MiniZinc/libminizinc/events","assignees_url":"https://api.github.com/repos/MiniZinc/libminizinc/assignees{/user}","branches_url":"https://api.github.com/repos/MiniZinc/libminizinc/branches{/branch}","tags_url":"https://api.github.com/repos/MiniZinc/libminizinc/tags","blobs_url":"https://api.github.com/repos/MiniZinc/libminizinc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MiniZinc/libminizinc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MiniZinc/libminizinc/git/refs{/sha}","trees_url":"https://api.github.com/repos/MiniZinc/libminizinc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MiniZinc/libminizinc/statuses/{sha}","languages_url":"https://api.github.com/repos/MiniZinc/libminizinc/languages","stargazers_url":"https://api.github.com/repos/MiniZinc/libminizinc/stargazers","contributors_url":"https://api.github.com/repos/MiniZinc/libminizinc/contributors","subscribers_url":"https://api.github.com/repos/MiniZinc/libminizinc/subscribers","subscription_url":"https://api.github.com/repos/MiniZinc/libminizinc/subscription","commits_url":"https://api.github.com/repos/MiniZinc/libminizinc/commits{/sha}","git_commits_url":"https://api.github.com/repos/MiniZinc/libminizinc/git/commits{/sha}","comments_url":"https://api.github.com/repos/MiniZinc/libminizinc/comments{/number}","issue_comment_url":"https://api.github.com/repos/MiniZinc/libminizinc/issues/comments{/number}","contents_url":"https://api.github.com/repos/MiniZinc/libminizinc/contents/{+path}","compare_url":"https://api.github.com/repos/MiniZinc/libminizinc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MiniZinc/libminizinc/merges","archive_url":"https://api.github.com/repos/MiniZinc/libminizinc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MiniZinc/libminizinc/downloads","issues_url":"https://api.github.com/repos/MiniZinc/libminizinc/issues{/number}","pulls_url":"https://api.github.com/repos/MiniZinc/libminizinc/pulls{/number}","milestones_url":"https://api.github.com/repos/MiniZinc/libminizinc/milestones{/number}","notifications_url":"https://api.github.com/repos/MiniZinc/libminizinc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MiniZinc/libminizinc/labels{/name}","releases_url":"https://api.github.com/repos/MiniZinc/libminizinc/releases{/id}","created_at":"2015-01-21T00:20:22Z","updated_at":"2015-06-22T17:27:36Z","pushed_at":"2015-07-01T04:39:00Z","git_url":"git://github.com/MiniZinc/libminizinc.git","ssh_url":"git@github.com:MiniZinc/libminizinc.git","clone_url":"https://github.com/MiniZinc/libminizinc.git","svn_url":"https://github.com/MiniZinc/libminizinc","homepage":null,"size":7437,"stargazers_count":10,"watchers_count":10,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/20"},"html":{"href":"https://github.com/MiniZinc/libminizinc/pull/20"},"issue":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/issues/20"},"comments":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/MiniZinc/libminizinc/statuses/f684851d01f4fbdc914ddb42281afb462de7d74a"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":3,"additions":79,"deletions":25,"changed_files":6}}