From 13ecd9e4365183c1882cd7a10ec860dd682683a6 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 1 May 2021 10:42:58 -0500 Subject: [PATCH] add twin weeknum guess --- this_week_in_nu.nu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/this_week_in_nu.nu b/this_week_in_nu.nu index ce8311d..2fe51af 100644 --- a/this_week_in_nu.nu +++ b/this_week_in_nu.nu @@ -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