regro / regolith

Research Group Content Managment System
http://regro.github.io/regolith-docs/
Other
14 stars 69 forks source link

ENH: l_contacts has -v option that lists everything #525

Closed sbillinge closed 4 years ago

sbillinge commented 4 years ago

pretty print it the same as in u_contact

dy2403 commented 4 years ago

Hi prof. @sbillinge! What does it mean to pretty print? Also, list everything would be list every thing inside each contacts (as name, institution, id, notes, aka)? Or would it be list everybody?

sbillinge commented 4 years ago

pretty print is actually a thing (look up pprint) but what I meant here was that it should look good when it is run. What works well in general is subsequent lines indented by 4 spaces. But when the data-type is a list or a dict it can be challenging to make it look good, so the easiest is to not spend too much time on it and make it look "not pretty" but functional....then try and see if it can be made to look pretty for not much messing around with code....

On Mon, Jul 6, 2020 at 10:31 AM Daniela Hikari Yano < notifications@github.com> wrote:

Hi prof. @sbillinge https://github.com/sbillinge! What does it mean to pretty print? Also, list everything would be list every thing inside each contacts (as name, institution, id, notes, aka)? Or would it be list everybody?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/regro/regolith/issues/525#issuecomment-654274656, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAOWUIUDUEAUXSEHOOSYXLR2HN2JANCNFSM4OROGBQA .

-- Professor Simon Billinge Columbia University