Closed Riyabelle25 closed 2 years ago
What do you think about https://github.com/ljharb/repo-report/pull/67#pullrequestreview-893967441 ?
I think it's o-kay for now. Moving those functionalities to a separate utils file would defy the purpose of having detail.js, as it's most of the code from there (L105 - L122). It looks like it might complicate things for the sake of better modularity
That's true that it's the bulk of the detail command - but the "generateDetailTable" call is really the point of that, getting repo names is incidental.
I'm happy to land this as-is, but I'll probably refactor it this way anyways :-)
Aight. Perhaps I can open a separate issue addressing this once the current PR is merged?
Turns out we already had repo-report ls
, but it'd been broken at some point, so I moved this code into that separate (re-created) command :-)
Woah! Just saw your refactored code 🙌
solves #50, by adding the
--names
option.On setting
true
it outputs the list ofrepos-with-their owner
instead of therepo-report
table. will remove the alias if it's not required here, or can come up with a more meaningful name for the optioncc: @ljharb