ModusCreateOrg/modus-cli

Automatically check for update

Opened this issue · 5 comments

Description

modus-cli should periodically check for updates (to see if a newer version exists)

The package.json file can be downloaded and version checked against the existing one.

Related issue is that if modus-cli is used to download/merge guidelines, we can check the guidelines repo periodically to see if IT changed, too.

grgur commented

This would be nice. How would we track changes, tho? E.g.

  1. Repo XYZ clones samples from Guidelines
  2. Repo XYZ changes LICENSE
  3. LICENSE is updated in Guidelines
  4. Now what? How does modus-cli know that LICENSE is changed but e.g. ISSUE_TEMPLATE isn't?

We keep a version number in modus-cli-config.js and compare with version number in the guidelines repo.

If LICENSE exists, cli won't overwrite it unless you add the -o switch.

grgur commented

That would be nice. We need to prioritize all feature requests first