{"action":"created","issue":{"url":"https://api.github.com/repos/mvdan/sh/issues/261","repository_url":"https://api.github.com/repos/mvdan/sh","labels_url":"https://api.github.com/repos/mvdan/sh/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/mvdan/sh/issues/261/comments","events_url":"https://api.github.com/repos/mvdan/sh/issues/261/events","html_url":"https://github.com/mvdan/sh/issues/261","id":337448040,"node_id":"MDU6SXNzdWUzMzc0NDgwNDA=","number":261,"title":"syntax: add option to configure how many statements in a list can fit in a single line","user":{"login":"tamalsaha","id":94814,"node_id":"MDQ6VXNlcjk0ODE0","avatar_url":"https://avatars1.githubusercontent.com/u/94814?v=4","gravatar_id":"","url":"https://api.github.com/users/tamalsaha","html_url":"https://github.com/tamalsaha","followers_url":"https://api.github.com/users/tamalsaha/followers","following_url":"https://api.github.com/users/tamalsaha/following{/other_user}","gists_url":"https://api.github.com/users/tamalsaha/gists{/gist_id}","starred_url":"https://api.github.com/users/tamalsaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamalsaha/subscriptions","organizations_url":"https://api.github.com/users/tamalsaha/orgs","repos_url":"https://api.github.com/users/tamalsaha/repos","events_url":"https://api.github.com/users/tamalsaha/events{/privacy}","received_events_url":"https://api.github.com/users/tamalsaha/received_events","type":"User","site_admin":false},"labels":[{"id":312152031,"node_id":"MDU6TGFiZWwzMTIxNTIwMzE=","url":"https://api.github.com/repos/mvdan/sh/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":312152032,"node_id":"MDU6TGFiZWwzMTIxNTIwMzI=","url":"https://api.github.com/repos/mvdan/sh/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mvdan/sh/milestones/7","html_url":"https://github.com/mvdan/sh/milestone/7","labels_url":"https://api.github.com/repos/mvdan/sh/milestones/7/labels","id":3456903,"node_id":"MDk6TWlsZXN0b25lMzQ1NjkwMw==","number":7,"title":"v2.5.0","description":"","creator":{"login":"mvdan","id":3576549,"node_id":"MDQ6VXNlcjM1NzY1NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/3576549?v=4","gravatar_id":"","url":"https://api.github.com/users/mvdan","html_url":"https://github.com/mvdan","followers_url":"https://api.github.com/users/mvdan/followers","following_url":"https://api.github.com/users/mvdan/following{/other_user}","gists_url":"https://api.github.com/users/mvdan/gists{/gist_id}","starred_url":"https://api.github.com/users/mvdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvdan/subscriptions","organizations_url":"https://api.github.com/users/mvdan/orgs","repos_url":"https://api.github.com/users/mvdan/repos","events_url":"https://api.github.com/users/mvdan/events{/privacy}","received_events_url":"https://api.github.com/users/mvdan/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2018-06-27T16:46:00Z","updated_at":"2018-07-02T12:58:36Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2018-07-02T09:54:30Z","updated_at":"2018-07-02T14:35:26Z","closed_at":null,"author_association":"NONE","body":"Thanks for this tool. In our shell script, we have lines like \r\n\r\n```\r\n \tlocal cmd=\"docker build -t $DOCKER_REGISTRY/$IMG:$TAG .\"\r\n\techo $cmd; $cmd\r\n```\r\n\r\nWe would like to not break lines like `echo $cmd; $cmd` into 2 separate lines. I did not see any flag to support this. Can this be supported?"},"comment":{"url":"https://api.github.com/repos/mvdan/sh/issues/comments/401826350","html_url":"https://github.com/mvdan/sh/issues/261#issuecomment-401826350","issue_url":"https://api.github.com/repos/mvdan/sh/issues/261","id":401826350,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTgyNjM1MA==","user":{"login":"mvdan","id":3576549,"node_id":"MDQ6VXNlcjM1NzY1NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/3576549?v=4","gravatar_id":"","url":"https://api.github.com/users/mvdan","html_url":"https://github.com/mvdan","followers_url":"https://api.github.com/users/mvdan/followers","following_url":"https://api.github.com/users/mvdan/following{/other_user}","gists_url":"https://api.github.com/users/mvdan/gists{/gist_id}","starred_url":"https://api.github.com/users/mvdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvdan/subscriptions","organizations_url":"https://api.github.com/users/mvdan/orgs","repos_url":"https://api.github.com/users/mvdan/repos","events_url":"https://api.github.com/users/mvdan/events{/privacy}","received_events_url":"https://api.github.com/users/mvdan/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T14:35:26Z","updated_at":"2018-07-02T14:35:26Z","author_association":"OWNER","body":"It would be great if some value meant that `foo() { bar; }` always gets rewritten to be multi-line. That is, like how `gofmt` works.\r\n\r\nDo we want to have a mode to allow any number of statements on a single line? I would say not. At that point, the user should be using the minify flag. And if they really edit code like that, I'm not sure why they use a formatter anyway.\r\n\r\nWe could make the `0` value for the \"allow lists of up to N\" option to always separate statements into their own lines. I have no idea what to call the flag, or how to fit all this in one sentence, though."}}
{"actor":{"display_login":"mvdan"}}