https://github.com/TheR1D/shell_gpt
E.g.
> sgpt --shell "Calculate total lines of code for py, js and ts files in current dir and deep; exclude node_modules and migrations folders; cloc installed; in result show only code column per file type; and show as table"
cloc --exclude-dir=node_modules,migrations --include-lang=python,javascript,typescript --csv --quiet . | awk -F, '{if ($2 == "Python" || $2 == "JavaScript" || $2 == "TypeScript") print $2","$5}' | column -t -s,
[E]xecute, [D]escribe, [A]bort: e
TypeScript 118007
JavaScript 108804
Python 38825
PS Бородатый анкедот:
Разработчик новой операционной системы выходит на трибуну и, потрясая ноутбуком, говорит:
«Перед вами первая ОС, которая полностью управляется с голоса!»
Пораженная аудитория выдерживает длинную паузу, и вдруг с галерки доносятся слова:
«Format C, двоеточие, Enter».