Closed davidnuzik closed 4 months ago
The existing hidden option --no-check-for-update
can be used to disable this check. @davidnuzik if you can confirm this works for your needs, I'm going to close this case as already implemented.
--no-check-for-update
is perfect -- no requests to the github api and no update messages or issue attempting to check update messages in the CLI. This ticks all the boxes -- closing this issue.
Summary: I'd like to request the addition of an argument which will enable skipping the api.github.com version check to see if the CLI is the latest or not and notify the user.
Rationale: There are a few use cases I can think of:
--no-cache
and thus there is no cache object on disk with the latest version info. I haven't tested but I believe this will cause consistent checks against the github api. I am not certain if there is logic to skip the check if --no-cache is used.Remarks: Perhaps we could call the argument
--skip-latest-version-check
or just--skip-version-check
or something along those lines. My guess is this belongs in the "General Options" section of the cli help probably.