Skip to content

Outdated message when spells are older than 30 days #88

Description

@askamycki

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions