data-weave-cli icon indicating copy to clipboard operation
data-weave-cli copied to clipboard

Outdated message when spells are older than 30 days

Open askamycki opened this issue 8 months ago • 0 comments

Describe the bug Outdated warning message when the spells are old.

To Reproduce Steps to reproduce the behavior:

  1. Modify the access/modified timestamp of the file $DW_HOME/grimoires/lastUpdate.txt to be older than 30 days. Eg: touch -d '2023-09-01T00:00:00' ~/.dw/grimoires/lastUpdate.txt
  2. Run any spell. Eg: dw spell --eval Playground
  3. A warning legend will appear indicating to update the spells by running dw update-spells, which it's oudated

Expected behavior The legend shown when not updating the spells for more than 30 days should show the correct command to update the grimoires: dw spell update

Screenshots image

Desktop (please complete the following information):

  • OS: macOS Ventura
  • Version 13.6 (22G120)
  • DW-CLI version: (Command Line : V1.0.34 / Runtime : V2.6.0-SNAPSHOT)

askamycki avatar Oct 10 '23 09:10 askamycki