diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bb3fad..904ebd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Upcoming changes... +## [1.35.0] - 2025-10-07 +### Modified +- Use gRPC instead of REST for API calls + ## [1.34.0] - 2025-10-06 ### Added - Add REST API support for decoration commands diff --git a/src/scanoss/__init__.py b/src/scanoss/__init__.py index 3339f1a..805b3ee 100644 --- a/src/scanoss/__init__.py +++ b/src/scanoss/__init__.py @@ -22,4 +22,4 @@ THE SOFTWARE. """ -__version__ = '1.34.0' +__version__ = '1.35.0' diff --git a/src/scanoss/cli.py b/src/scanoss/cli.py index d524e70..b5c2a0b 100644 --- a/src/scanoss/cli.py +++ b/src/scanoss/cli.py @@ -1070,7 +1070,8 @@ def setup_args() -> None: # noqa: PLR0912, PLR0915 c_versions, c_licenses, ]: - p.add_argument('--grpc', action='store_true', help='Enable gRPC support') + p.add_argument('--grpc', action='store_true', default=True, help='Use gRPC (default)') + p.add_argument('--rest', action='store_true', dest='rest', help='Use REST instead of gRPC') # Help/Trace command options for p in [ @@ -1111,6 +1112,12 @@ def setup_args() -> None: # noqa: PLR0912, PLR0915 p.add_argument('--quiet', '-q', action='store_true', help='Enable quiet mode') args = parser.parse_args() + + # TODO: Remove this hack once we go back to using REST as default + # Handle --rest overriding --grpc default + if hasattr(args, 'rest') and args.rest: + args.grpc = False + if args.version: ver(parser, args) sys.exit(0)