1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Port before_v0.60/with_externals and cleanup (#852)

This commit is contained in:
Igor 2024-05-27 01:34:36 +04:00 committed by GitHub
parent 840d723d89
commit 42732dad6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 4 additions and 62 deletions

View file

@ -0,0 +1,7 @@
# With Externals
This folder includes various nushell scripts that require installing an external program in order to work.
### Contributing
Please include the name of the program and, if possible, basic installation instructions, as part of your script.

View file

@ -0,0 +1,14 @@
# This script requires that `tokei` be installed and available!
# Count lines of code in a project.
export def main [
...rest # args to pass to tokei
] {
tokei -o json ...$rest |
from json |
transpose |
rename lang lines |
insert files { get lines.reports | length } |
select lang files lines.code lines.comments lines.blanks
}