sourcegraph / src-cli

Sourcegraph CLI
https://sourcegraph.com
Apache License 2.0
267 stars 57 forks source link

Add check to display outdated version warning #1056

Open alicse3 opened 5 months ago

alicse3 commented 5 months ago

Fixes #930

This change checks for outdated src-cli version and prints warning message for any command.

➜  src-cli git:(check-for-outdated-version) ✗ ./src
⚠️  You are using an outdated version 4.3.0. Please upgrade to 5.2.1 or later.
src is a tool that provides access to Sourcegraph instances.
For more information, see https://github.com/sourcegraph/src-cli

Usage:

    src [options] command [command options]

Examples: login Warning search Warning version Warning

Test plan