redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

auto detect package manager to suggest update

Open ImBIOS opened this issue 9 months ago • 2 comments

Is your feature request related to a problem? Please describe.

󰀵  󱑍 10:19   warp-multi-sidebars    main !?+15 via  v22.13.0   9s 
 ➜  redocly preview

    ╔═══════════════════════════════════════════════════════╗
    ║                                                       ║
    ║  A new version of Redocly CLI (1.33.1) is available.  ║
    ║  Update now: `npm i -g @redocly/cli@latest`.          ║
    ║  Changelog: https://redocly.com/docs/cli/changelog/   ║
    ║                                                       ║
    ╚═══════════════════════════════════════════════════════╝

Describe the solution you'd like

maybe use which redocly to identify it

 ➜  which redocly                      
/Users/imbios/Library/pnpm/redocly

then update the recommendation to use the correct package manager

Describe alternatives you've considered

Additional context

ImBIOS avatar Mar 17 '25 03:03 ImBIOS

I would mark it as p4 or even no do it at all. I think it adds a little value but requires adding some code which needs to be maintained. My assumption is that anybody using alternative package manager surely can understand what to do from this message (correct me if I'm wrong).

RomanHotsiy avatar Mar 17 '25 04:03 RomanHotsiy

yeah, you're right, even AI Terminal like Warp smartly understands that. It's just a sprinkle of luxury that nice to have this feature.

But it'd be nice for people to have just copy/paste without remembering which PM like this. I forgot which CLI app is it, but I reported this idea because I remember they have this behavior so I naturally expect similar behavior.

Let's say some open source contributor would pick to work with this issue, should we work it against main or v2 branch? Because I know from @tatomyr that we're currently doing a major refactor to v2.

ImBIOS avatar Mar 19 '25 03:03 ImBIOS