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

add twin weeknum guess

This commit is contained in:
Darren Schroeder 2021-05-01 10:42:58 -05:00
parent 995b15f9d7
commit 13ecd9e436

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