Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check to display outdated version warning #1056

Closed
wants to merge 1 commit into from
Closed

Add check to display outdated version warning #1056

wants to merge 1 commit into from

Conversation

alicse3
Copy link

@alicse3 alicse3 commented Feb 1, 2024

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

  • Pull this PR changes and run cli commands directly(go run ./cmd/src) or by building go build ./cmd/src && ./src.
  • To test different versions, change version.BuildTag value and re-run commands.

@alicse3 alicse3 closed this by deleting the head repository Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn on any command if not on latest version
1 participant