Skip to content

Commit

Permalink
Merge pull request nushell#46 from fdncred/twin_week_number_calc
Browse files Browse the repository at this point in the history
add twin weeknum guess
  • Loading branch information
fdncred committed May 1, 2021
2 parents 995b15f + 13ecd9e commit d63c0ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions this_week_in_nu.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d63c0ce

Please sign in to comment.