question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🚀 Feature Proposal: Update Notification for Global Installs

See original GitHub issue

🚀 Feature Proposal

Many users out there install CLIs globally but the issue with this approach is these users don’t get any notification when a new update for the CLI is available. This can be fixed using update-check package developed by Vercel. I read the code of fastify-cli and found that you folks have also not implemented this feature. (I might be wrong. In that case, just close the issue).

I can send a PR your way with the feature implemented. Let me know.

Motivation

To help developers work with the latest version of the CLI even if they have installed it globally.

Example

When the CLI is about to exit, a block code will run that notifies the user with a message to update the CLI if an update is available.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
MSE99commented, Jul 27, 2021

You can use this small wrapper function around command handlers in cli.js.

cli.js itself is a executable. No need to wrap each handler and IIFE. Just place the checking before all commist.register.

It’s a cleaner way of doing things, checking for updates will mean accessing the network (it has to be done asynchronously) some command handlers schedule async tasks too, it’s better if fastify-cli checks for an update and prints a notification first then proceeds with whatever else it had to do.

0reactions
stale[bot]commented, Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2019-09-09 - Triage report for "group::project management" (#67158 ...
Feature Proposal Section. For the following feature proposals. ... to edit to global notification settings to the UI customer, devopsplan, ~"feature", ...
Read more >
Updating packages downloaded from the registry - npm Docs
Updating local and global packages you downloaded from the registry helps keep your code and tools stable, usable, and secure.
Read more >
Four Exciting Web Proposals - JavaScript Christmas
A web proposal is the specification of a feature, API or any other addition to the official web standards, governed by the World...
Read more >
FAQs | Science Mission Directorate
I missed the deadline for the notice of intent (NOI), may I still propose? ... Get automatic updates of due dates using the...
Read more >
Bit.ai - Document Collaboration for The New Era
Bit is a powerful document collaboration platform to create documents, notes, wikis with advanced design options, robust search, document tracking and much ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found