{"push_id":1110708782,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"52b070faba586aa8806967a922f2ec8f4adef4bf","before":"0488b26777ba0dd71c9d94f771162fed2ac5000d","commits":[{"sha":"c59f04465cff2d2d147491d5ec521e8b769bd377","author":{"email":"5d42a0e44e2b47374e182c98b792e43fa0a82956@idgrilles.fr","name":"Vincent Legoll"},"message":"Add CLIFF_MAX_TERM_WIDTH envvar to complement --max-width\n\nSome cliff clients tailors their output according to characteristics\nof the terminal they outputs text to. They detect the width of the\nterminal in order to pretty print text properly cut to line length.\n\nThere are situations where the output is not in a \"real\" terminal\nbut in some kind of emulation or redirected layer for which this\nline length interpretation is not ideal. For example in a bash\njupyter-notebook.\n\nThere already exist the --max-width CLI parameter to allow that\nto be customized, but there are cases where you don't want to\nuse an additional parameter. So add an environment variable\nthat has the same meaning, to help avoiding the use of\n--max-width.\n\nWithout the parameter nor the envvar, the behaviour should stay\nthe same as before the patch, i.e. the output is cut to terminal\nline length. The envvar is then used to give the parameter's\ndefault value, so the parameter will stay being the final one\ndeciding of the behaviour when used.\n\nAdd mock'ed testing for the new CLIFF_MAX_TERM_WIDTH envvar.\nAdd mock'ed tests to ensure parameter vs envvar priority.\nAdd testing for actual parameter parsing & priority vs envvar.²\n\nThis has been discussed in:\nhttps://bugs.launchpad.net/python-openstackclient/+bug/1577368\nhttps://bugs.launchpad.net/python-cliff/+bug/1485847/comments/7\n\nCloses-Bug: 1577368\nRelated-Bug: 1485847\n\nChange-Id: I0ab988ea0e7087960a9bfb2353f46918f0333a53\nSigned-off-by: Vincent Legoll <vincent.legoll@idgrilles.fr>","distinct":true,"url":"https://api.github.com/repos/openstack/cliff/commits/c59f04465cff2d2d147491d5ec521e8b769bd377"},{"sha":"52b070faba586aa8806967a922f2ec8f4adef4bf","author":{"email":"d95b56ce41a2e1ac4cecdd398defd7414407cc08@review.openstack.org","name":"Jenkins"},"message":"Merge \"Add CLIFF_MAX_TERM_WIDTH envvar to complement --max-width\"","distinct":true,"url":"https://api.github.com/repos/openstack/cliff/commits/52b070faba586aa8806967a922f2ec8f4adef4bf"}]}