Add gitlab and sourceforge fallbacks to version.rb (#13226)

* Add gitlab and sourceforge fallbacks to version.rb

Add Compile? to version line output

Update options and help to include -vv

Fix candidate selection logic

Add more very verbose debugging output

* Rubocop lint

* More rubocop linting

* Handle package not found searches more elegantly

* Set VERBOSE to true if VERY_VERBOSE
This commit is contained in:
Ed Reel
2025-10-27 15:15:33 -05:00
committed by GitHub
parent a63365d99a
commit 300ca940f6
4 changed files with 94 additions and 32 deletions

View File

@@ -162,10 +162,11 @@ class Command
when 'upstream'
puts <<~EOT
Check if an upstream version is available for package(s).
Usage: crew upstream [-j|--json|-u|--update-package-files|-v|--verbose] [<package1> <package2> ...]
Usage: crew upstream [-j|--json|-u|--update-package-files|-v|--verbose|-vv] [<package1> <package2> ...]
If `-j` or `--json` is present, output will be in json format.
If `-u` or `--update-package-files` is present, it will attempt to update the package version.
If `-v` or `--verbose` is present, extra information will be displayed.
If `-vv` is present, very verbose information will be displayed.
EOT
when 'version'
puts <<~EOT