Upgrade linguist dependency

This version changes how it counts python heredoc. All heredoc is
counted as code.
This commit is contained in:
Andrew Eisenberg
2021-08-25 10:45:44 -07:00
parent a44b61d961
commit b29bf7b05a
32 changed files with 410 additions and 339 deletions

View File

@@ -13,7 +13,7 @@ program
.description('count lines of code in a file')
.action(async (pathPattern) => {
try {
const info = await (new LocFile(pathPattern).getFileInfo());
const info = await new LocFile(pathPattern).getFileInfo();
// eslint-disable-next-line no-console
console.log(
chalk.cyan(`
@@ -52,9 +52,9 @@ const formatInfo = (
program.arguments('<cmd> [env]').action(async (cmd) => {
try {
const { info, languages } = await (new LocDir({
include: cmd
}).loadInfo());
const { info, languages } = await new LocDir({
include: cmd,
}).loadInfo();
// eslint-disable-next-line no-console
console.log(chalk.cyan(formatInfo(info, languages)));
} catch (e) {