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

Merge pull request #46 from fdncred/twin_week_number_calc

add twin weeknum guess
This commit is contained in:
Darren Schroeder 2021-05-01 10:43:57 -05:00 committed by GitHub
commit d63c0ce73d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,7 @@ def do-work [] {
}
}
build-string '# This week in Nushell #' $(char nl) $(char nl)
# 2019-08-23 was the release of 0.2.0, the first public release
let week_num = $(seq date -b '2019-08-23' -n 7 | length)
build-string '# This week in Nushell #' $week_num $(char nl) $(char nl)
do-work | str collect