Skip to content

Commit

Permalink
Show counts on log
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Feb 1, 2021
1 parent b68599b commit c0dd47a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ const { GH_TOKEN, GIST_ID, USERNAME, DAYS } = process.env;
);

const langs = await runLinguist(files);
console.log(`\n`);
langs.forEach((l) =>
console.log(
`${l.name}: ${l.count}files ${l.additions + l.deletions}changes`
)
);

const content = createContent(langs);
console.log(`\n`);
Expand Down
1 change: 1 addition & 0 deletions src/linguist.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const runLinguist = async (files) => {
(acc, p) => acc + (pathFileMap[p]?.deletions ?? 0),
0
),
count: v.paths.length,
});
return acc;
}, [])
Expand Down

0 comments on commit c0dd47a

Please sign in to comment.