Commit Graph

3 Commits

Author SHA1 Message Date
Andres Suarez
fbdb46f5cb Tidy up license headers
Reviewed By: chadaustin

Differential Revision: D17872966

fbshipit-source-id: cd60a364a2146f0dadbeca693b1d4a5d7c97ff63
2019-10-11 05:28:23 -07:00
Adam Simpkins
9bfb48c921 update license headers in .py files
Summary:
Update the copyright & license headers in Python files to reflect the
relicensing to GPLv2

Reviewed By: wez

Differential Revision: D15487088

fbshipit-source-id: 9f2138dff41048d2c35f15e09a04ae5a9c9c80dd
2019-06-19 17:02:46 -07:00
Wez Furlong
ac89061656 eden: add a helper function to the cli to tabulate output
Summary:
For the redirect subcommand I wanted to automatically tabulate
some data to display it, so here's a little helper function.

The intent is that we pass a list of dictionaries with the data and let
the tabulate function render it for human consumption.

That same set of dictionaries could also be passed to a json serializer
for machine readable output (out of scope from this diff).

The tabulated data is intentionally limited in this current form:

* We make a run through and compute the max width of each column
* A simple header_labels map can be used to provide more human
  readable versions of the dictionary keys as the column headers
* A missing header lable defaults to the uppercased version of
  the dictionary key for that column
* Cell contents are all left aligned in their respective cell

Reviewed By: strager

Differential Revision: D15700886

fbshipit-source-id: e47a1ebc56edb0fd386bfda83865f946f5e782ce
2019-06-11 16:41:00 -07:00