Closed diananova closed 3 years ago
What I'd probably do is list the repository slug rather than the owner separately - iow, diananova/phone-book
instead of both of those columns.
- I also noticed that in mappedFields the logSymbols control is not necessary, because we do it in tables.push
We actually use it over here: https://github.com/ljharb/repo-report/blob/5e0b282cfd3bcc490eb14182f81ceb93260b8e19/src/commands/list.js#L76
It is invoked when you group the output by isPublic.
We don't use it when the output isn't going to be grouped here: https://github.com/ljharb/repo-report/blob/5e0b282cfd3bcc490eb14182f81ceb93260b8e19/src/commands/list.js#L91-L99
We could (and probably should) use it over there as well like so:
repositories.forEach((item) => {
table.push(mappedFields.map((func) => func(item)));
});
Nice catch!!
list
as well? @thehanimo there are some fields missing that I couldn't find. For ex.
@jakazzy would you like to look into this? Also, feel free to add other fields that you think might be useful.
(btw sorry for opening a duplicated branch 5-options-list
, it would be nice to delete it if possible. I was trying to get rid of all the extra commits).
@diananova Great PR can you rebase this with master :)
@diananova Great PR can you rebase this with master :)
Ok done!
fields added so far:
notes: