sentry-cli 2.41.1__tar.gz → 2.42.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/Cargo.lock +249 -33
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/Cargo.toml +1 -2
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/LICENSE +1 -1
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/PKG-INFO +1 -1
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/envelopes_api.rs +1 -1
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/mod.rs +17 -20
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/login.rs +2 -2
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/mod.rs +15 -26
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/react_native/appcenter.rs +2 -2
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/react_native/gradle.rs +4 -4
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/react_native/xcode.rs +4 -4
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/sourcemaps/inject.rs +1 -1
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/sourcemaps/resolve.rs +15 -14
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/sourcemaps/upload.rs +13 -10
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/update.rs +3 -2
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/config.rs +12 -15
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/main.rs +2 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/sourcemaps.rs +3 -6
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/system.rs +71 -32
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/update.rs +4 -2
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/value_parsers.rs +3 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/MANIFEST.in +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/README.md +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/build.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/pyproject.toml +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/setup.cfg +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/setup.py +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/connection_manager.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/artifact.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/compression.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/dif.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/file_state.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/hash_algorithm.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/upload/capability.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/upload/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/chunking/upload/options.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/deploy.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/data_types/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/encoding.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/errors/api_error.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/errors/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/errors/sentry_error.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/api/pagination.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/bashsupport.sh +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/debug_files/upload.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/derive_parser.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/files/upload.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/info.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/issues/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/monitors/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/monitors/run.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_metric/common_args.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_metric/distribution.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_metric/gauge.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_metric/increment.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_metric/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/send_metric/set.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/sourcemaps/explain.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/constants.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/android.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/args.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/auth_token_impl.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/error.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/org_auth_token.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/redacting.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/test.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/auth_token/user_auth_token.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/chunks/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/chunks/options.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/chunks/types.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/chunks/upload.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/dif.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/dif_upload/error.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/dif_upload/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/event.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/file_upload.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/fs.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/http.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/logging.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/metrics.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/progress.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/proguard/mapping.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/proguard/mod.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/proguard/upload.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/releases.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/retry.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/ui.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.41.1 → sentry_cli-2.42.0}/src/utils/xcode.rs +0 -0
|
@@ -1343,14 +1343,143 @@ dependencies = [
|
|
|
1343
1343
|
"cc",
|
|
1344
1344
|
]
|
|
1345
1345
|
|
|
1346
|
+
[[package]]
|
|
1347
|
+
name = "icu_collections"
|
|
1348
|
+
version = "1.5.0"
|
|
1349
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1350
|
+
checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526"
|
|
1351
|
+
dependencies = [
|
|
1352
|
+
"displaydoc",
|
|
1353
|
+
"yoke",
|
|
1354
|
+
"zerofrom",
|
|
1355
|
+
"zerovec",
|
|
1356
|
+
]
|
|
1357
|
+
|
|
1358
|
+
[[package]]
|
|
1359
|
+
name = "icu_locid"
|
|
1360
|
+
version = "1.5.0"
|
|
1361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1362
|
+
checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637"
|
|
1363
|
+
dependencies = [
|
|
1364
|
+
"displaydoc",
|
|
1365
|
+
"litemap",
|
|
1366
|
+
"tinystr",
|
|
1367
|
+
"writeable",
|
|
1368
|
+
"zerovec",
|
|
1369
|
+
]
|
|
1370
|
+
|
|
1371
|
+
[[package]]
|
|
1372
|
+
name = "icu_locid_transform"
|
|
1373
|
+
version = "1.5.0"
|
|
1374
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1375
|
+
checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e"
|
|
1376
|
+
dependencies = [
|
|
1377
|
+
"displaydoc",
|
|
1378
|
+
"icu_locid",
|
|
1379
|
+
"icu_locid_transform_data",
|
|
1380
|
+
"icu_provider",
|
|
1381
|
+
"tinystr",
|
|
1382
|
+
"zerovec",
|
|
1383
|
+
]
|
|
1384
|
+
|
|
1385
|
+
[[package]]
|
|
1386
|
+
name = "icu_locid_transform_data"
|
|
1387
|
+
version = "1.5.0"
|
|
1388
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1389
|
+
checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e"
|
|
1390
|
+
|
|
1391
|
+
[[package]]
|
|
1392
|
+
name = "icu_normalizer"
|
|
1393
|
+
version = "1.5.0"
|
|
1394
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1395
|
+
checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f"
|
|
1396
|
+
dependencies = [
|
|
1397
|
+
"displaydoc",
|
|
1398
|
+
"icu_collections",
|
|
1399
|
+
"icu_normalizer_data",
|
|
1400
|
+
"icu_properties",
|
|
1401
|
+
"icu_provider",
|
|
1402
|
+
"smallvec",
|
|
1403
|
+
"utf16_iter",
|
|
1404
|
+
"utf8_iter",
|
|
1405
|
+
"write16",
|
|
1406
|
+
"zerovec",
|
|
1407
|
+
]
|
|
1408
|
+
|
|
1409
|
+
[[package]]
|
|
1410
|
+
name = "icu_normalizer_data"
|
|
1411
|
+
version = "1.5.0"
|
|
1412
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1413
|
+
checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516"
|
|
1414
|
+
|
|
1415
|
+
[[package]]
|
|
1416
|
+
name = "icu_properties"
|
|
1417
|
+
version = "1.5.1"
|
|
1418
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1419
|
+
checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5"
|
|
1420
|
+
dependencies = [
|
|
1421
|
+
"displaydoc",
|
|
1422
|
+
"icu_collections",
|
|
1423
|
+
"icu_locid_transform",
|
|
1424
|
+
"icu_properties_data",
|
|
1425
|
+
"icu_provider",
|
|
1426
|
+
"tinystr",
|
|
1427
|
+
"zerovec",
|
|
1428
|
+
]
|
|
1429
|
+
|
|
1430
|
+
[[package]]
|
|
1431
|
+
name = "icu_properties_data"
|
|
1432
|
+
version = "1.5.0"
|
|
1433
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1434
|
+
checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569"
|
|
1435
|
+
|
|
1436
|
+
[[package]]
|
|
1437
|
+
name = "icu_provider"
|
|
1438
|
+
version = "1.5.0"
|
|
1439
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1440
|
+
checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9"
|
|
1441
|
+
dependencies = [
|
|
1442
|
+
"displaydoc",
|
|
1443
|
+
"icu_locid",
|
|
1444
|
+
"icu_provider_macros",
|
|
1445
|
+
"stable_deref_trait",
|
|
1446
|
+
"tinystr",
|
|
1447
|
+
"writeable",
|
|
1448
|
+
"yoke",
|
|
1449
|
+
"zerofrom",
|
|
1450
|
+
"zerovec",
|
|
1451
|
+
]
|
|
1452
|
+
|
|
1453
|
+
[[package]]
|
|
1454
|
+
name = "icu_provider_macros"
|
|
1455
|
+
version = "1.5.0"
|
|
1456
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1457
|
+
checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
|
|
1458
|
+
dependencies = [
|
|
1459
|
+
"proc-macro2",
|
|
1460
|
+
"quote",
|
|
1461
|
+
"syn 2.0.68",
|
|
1462
|
+
]
|
|
1463
|
+
|
|
1346
1464
|
[[package]]
|
|
1347
1465
|
name = "idna"
|
|
1348
|
-
version = "0.
|
|
1466
|
+
version = "1.0.3"
|
|
1467
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1468
|
+
checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
|
|
1469
|
+
dependencies = [
|
|
1470
|
+
"idna_adapter",
|
|
1471
|
+
"smallvec",
|
|
1472
|
+
"utf8_iter",
|
|
1473
|
+
]
|
|
1474
|
+
|
|
1475
|
+
[[package]]
|
|
1476
|
+
name = "idna_adapter"
|
|
1477
|
+
version = "1.2.0"
|
|
1349
1478
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1350
|
-
checksum = "
|
|
1479
|
+
checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71"
|
|
1351
1480
|
dependencies = [
|
|
1352
|
-
"
|
|
1353
|
-
"
|
|
1481
|
+
"icu_normalizer",
|
|
1482
|
+
"icu_properties",
|
|
1354
1483
|
]
|
|
1355
1484
|
|
|
1356
1485
|
[[package]]
|
|
@@ -1577,6 +1706,12 @@ version = "0.4.14"
|
|
|
1577
1706
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1578
1707
|
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
|
1579
1708
|
|
|
1709
|
+
[[package]]
|
|
1710
|
+
name = "litemap"
|
|
1711
|
+
version = "0.7.4"
|
|
1712
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1713
|
+
checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
|
|
1714
|
+
|
|
1580
1715
|
[[package]]
|
|
1581
1716
|
name = "lock_api"
|
|
1582
1717
|
version = "0.4.12"
|
|
@@ -2561,13 +2696,12 @@ dependencies = [
|
|
|
2561
2696
|
|
|
2562
2697
|
[[package]]
|
|
2563
2698
|
name = "sentry-cli"
|
|
2564
|
-
version = "2.
|
|
2699
|
+
version = "2.42.0"
|
|
2565
2700
|
dependencies = [
|
|
2566
2701
|
"anyhow",
|
|
2567
2702
|
"anylog",
|
|
2568
2703
|
"assert_cmd",
|
|
2569
2704
|
"backoff",
|
|
2570
|
-
"backtrace",
|
|
2571
2705
|
"brotli2",
|
|
2572
2706
|
"bytecount",
|
|
2573
2707
|
"chrono",
|
|
@@ -3020,6 +3154,17 @@ dependencies = [
|
|
|
3020
3154
|
"unicode-ident",
|
|
3021
3155
|
]
|
|
3022
3156
|
|
|
3157
|
+
[[package]]
|
|
3158
|
+
name = "synstructure"
|
|
3159
|
+
version = "0.13.1"
|
|
3160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3161
|
+
checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
|
|
3162
|
+
dependencies = [
|
|
3163
|
+
"proc-macro2",
|
|
3164
|
+
"quote",
|
|
3165
|
+
"syn 2.0.68",
|
|
3166
|
+
]
|
|
3167
|
+
|
|
3023
3168
|
[[package]]
|
|
3024
3169
|
name = "tap"
|
|
3025
3170
|
version = "1.0.1"
|
|
@@ -3117,20 +3262,15 @@ dependencies = [
|
|
|
3117
3262
|
]
|
|
3118
3263
|
|
|
3119
3264
|
[[package]]
|
|
3120
|
-
name = "
|
|
3121
|
-
version = "
|
|
3265
|
+
name = "tinystr"
|
|
3266
|
+
version = "0.7.6"
|
|
3122
3267
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3123
|
-
checksum = "
|
|
3268
|
+
checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"
|
|
3124
3269
|
dependencies = [
|
|
3125
|
-
"
|
|
3270
|
+
"displaydoc",
|
|
3271
|
+
"zerovec",
|
|
3126
3272
|
]
|
|
3127
3273
|
|
|
3128
|
-
[[package]]
|
|
3129
|
-
name = "tinyvec_macros"
|
|
3130
|
-
version = "0.1.1"
|
|
3131
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3132
|
-
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
|
3133
|
-
|
|
3134
3274
|
[[package]]
|
|
3135
3275
|
name = "tokio"
|
|
3136
3276
|
version = "1.41.1"
|
|
@@ -3250,12 +3390,6 @@ dependencies = [
|
|
|
3250
3390
|
"libc",
|
|
3251
3391
|
]
|
|
3252
3392
|
|
|
3253
|
-
[[package]]
|
|
3254
|
-
name = "unicode-bidi"
|
|
3255
|
-
version = "0.3.15"
|
|
3256
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3257
|
-
checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
|
|
3258
|
-
|
|
3259
3393
|
[[package]]
|
|
3260
3394
|
name = "unicode-id-start"
|
|
3261
3395
|
version = "1.1.2"
|
|
@@ -3268,15 +3402,6 @@ version = "1.0.12"
|
|
|
3268
3402
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3269
3403
|
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
|
3270
3404
|
|
|
3271
|
-
[[package]]
|
|
3272
|
-
name = "unicode-normalization"
|
|
3273
|
-
version = "0.1.23"
|
|
3274
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3275
|
-
checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
|
|
3276
|
-
dependencies = [
|
|
3277
|
-
"tinyvec",
|
|
3278
|
-
]
|
|
3279
|
-
|
|
3280
3405
|
[[package]]
|
|
3281
3406
|
name = "unicode-width"
|
|
3282
3407
|
version = "0.1.13"
|
|
@@ -3285,9 +3410,9 @@ checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
|
|
|
3285
3410
|
|
|
3286
3411
|
[[package]]
|
|
3287
3412
|
name = "url"
|
|
3288
|
-
version = "2.5.
|
|
3413
|
+
version = "2.5.4"
|
|
3289
3414
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3290
|
-
checksum = "
|
|
3415
|
+
checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
|
|
3291
3416
|
dependencies = [
|
|
3292
3417
|
"form_urlencoded",
|
|
3293
3418
|
"idna",
|
|
@@ -3305,6 +3430,18 @@ dependencies = [
|
|
|
3305
3430
|
"winapi 0.2.8",
|
|
3306
3431
|
]
|
|
3307
3432
|
|
|
3433
|
+
[[package]]
|
|
3434
|
+
name = "utf16_iter"
|
|
3435
|
+
version = "1.0.5"
|
|
3436
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3437
|
+
checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246"
|
|
3438
|
+
|
|
3439
|
+
[[package]]
|
|
3440
|
+
name = "utf8_iter"
|
|
3441
|
+
version = "1.0.4"
|
|
3442
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3443
|
+
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
3444
|
+
|
|
3308
3445
|
[[package]]
|
|
3309
3446
|
name = "utf8parse"
|
|
3310
3447
|
version = "0.2.2"
|
|
@@ -3722,6 +3859,18 @@ dependencies = [
|
|
|
3722
3859
|
"memchr",
|
|
3723
3860
|
]
|
|
3724
3861
|
|
|
3862
|
+
[[package]]
|
|
3863
|
+
name = "write16"
|
|
3864
|
+
version = "1.0.0"
|
|
3865
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3866
|
+
checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"
|
|
3867
|
+
|
|
3868
|
+
[[package]]
|
|
3869
|
+
name = "writeable"
|
|
3870
|
+
version = "0.5.5"
|
|
3871
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3872
|
+
checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
|
|
3873
|
+
|
|
3725
3874
|
[[package]]
|
|
3726
3875
|
name = "wyz"
|
|
3727
3876
|
version = "0.5.1"
|
|
@@ -3731,6 +3880,30 @@ dependencies = [
|
|
|
3731
3880
|
"tap",
|
|
3732
3881
|
]
|
|
3733
3882
|
|
|
3883
|
+
[[package]]
|
|
3884
|
+
name = "yoke"
|
|
3885
|
+
version = "0.7.5"
|
|
3886
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3887
|
+
checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40"
|
|
3888
|
+
dependencies = [
|
|
3889
|
+
"serde",
|
|
3890
|
+
"stable_deref_trait",
|
|
3891
|
+
"yoke-derive",
|
|
3892
|
+
"zerofrom",
|
|
3893
|
+
]
|
|
3894
|
+
|
|
3895
|
+
[[package]]
|
|
3896
|
+
name = "yoke-derive"
|
|
3897
|
+
version = "0.7.5"
|
|
3898
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3899
|
+
checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
|
|
3900
|
+
dependencies = [
|
|
3901
|
+
"proc-macro2",
|
|
3902
|
+
"quote",
|
|
3903
|
+
"syn 2.0.68",
|
|
3904
|
+
"synstructure",
|
|
3905
|
+
]
|
|
3906
|
+
|
|
3734
3907
|
[[package]]
|
|
3735
3908
|
name = "zerocopy"
|
|
3736
3909
|
version = "0.7.35"
|
|
@@ -3751,12 +3924,55 @@ dependencies = [
|
|
|
3751
3924
|
"syn 2.0.68",
|
|
3752
3925
|
]
|
|
3753
3926
|
|
|
3927
|
+
[[package]]
|
|
3928
|
+
name = "zerofrom"
|
|
3929
|
+
version = "0.1.5"
|
|
3930
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3931
|
+
checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e"
|
|
3932
|
+
dependencies = [
|
|
3933
|
+
"zerofrom-derive",
|
|
3934
|
+
]
|
|
3935
|
+
|
|
3936
|
+
[[package]]
|
|
3937
|
+
name = "zerofrom-derive"
|
|
3938
|
+
version = "0.1.5"
|
|
3939
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3940
|
+
checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"
|
|
3941
|
+
dependencies = [
|
|
3942
|
+
"proc-macro2",
|
|
3943
|
+
"quote",
|
|
3944
|
+
"syn 2.0.68",
|
|
3945
|
+
"synstructure",
|
|
3946
|
+
]
|
|
3947
|
+
|
|
3754
3948
|
[[package]]
|
|
3755
3949
|
name = "zeroize"
|
|
3756
3950
|
version = "1.8.1"
|
|
3757
3951
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3758
3952
|
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|
|
3759
3953
|
|
|
3954
|
+
[[package]]
|
|
3955
|
+
name = "zerovec"
|
|
3956
|
+
version = "0.10.4"
|
|
3957
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3958
|
+
checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079"
|
|
3959
|
+
dependencies = [
|
|
3960
|
+
"yoke",
|
|
3961
|
+
"zerofrom",
|
|
3962
|
+
"zerovec-derive",
|
|
3963
|
+
]
|
|
3964
|
+
|
|
3965
|
+
[[package]]
|
|
3966
|
+
name = "zerovec-derive"
|
|
3967
|
+
version = "0.10.3"
|
|
3968
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3969
|
+
checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
|
|
3970
|
+
dependencies = [
|
|
3971
|
+
"proc-macro2",
|
|
3972
|
+
"quote",
|
|
3973
|
+
"syn 2.0.68",
|
|
3974
|
+
]
|
|
3975
|
+
|
|
3760
3976
|
[[package]]
|
|
3761
3977
|
name = "zip"
|
|
3762
3978
|
version = "0.6.6"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
|
|
3
3
|
build = "build.rs"
|
|
4
4
|
name = "sentry-cli"
|
|
5
|
-
version = "2.
|
|
5
|
+
version = "2.42.0"
|
|
6
6
|
edition = "2021"
|
|
7
7
|
rust-version = "1.80"
|
|
8
8
|
|
|
@@ -10,7 +10,6 @@ rust-version = "1.80"
|
|
|
10
10
|
anylog = "0.6.3"
|
|
11
11
|
anyhow = { version = "1.0.69", features = ["backtrace"] }
|
|
12
12
|
backoff = "0.4.0"
|
|
13
|
-
backtrace = "0.3.67"
|
|
14
13
|
brotli2 = "0.3.2"
|
|
15
14
|
bytecount = "0.6.3"
|
|
16
15
|
chrono = { version = "0.4.31", features = ["serde"] }
|
|
@@ -285,7 +285,7 @@ impl Api {
|
|
|
285
285
|
pub fn download_with_progress(&self, url: &str, dst: &mut File) -> ApiResult<ApiResponse> {
|
|
286
286
|
self.request(Method::Get, url, None)?
|
|
287
287
|
.follow_location(true)?
|
|
288
|
-
.progress_bar_mode(ProgressBarMode::Response)
|
|
288
|
+
.progress_bar_mode(ProgressBarMode::Response)
|
|
289
289
|
.send_into(dst)
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -402,8 +402,8 @@ impl Api {
|
|
|
402
402
|
http::HTTP_STATUS_503_SERVICE_UNAVAILABLE,
|
|
403
403
|
http::HTTP_STATUS_504_GATEWAY_TIMEOUT,
|
|
404
404
|
],
|
|
405
|
-
)
|
|
406
|
-
.progress_bar_mode(progress_bar_mode)
|
|
405
|
+
)
|
|
406
|
+
.progress_bar_mode(progress_bar_mode);
|
|
407
407
|
|
|
408
408
|
// The request is performed to an absolute URL. Thus, `Self::request()` will
|
|
409
409
|
// not add the authorization header, by default. Since the URL is guaranteed
|
|
@@ -974,7 +974,7 @@ impl<'a> AuthenticatedApi<'a> {
|
|
|
974
974
|
http::HTTP_STATUS_503_SERVICE_UNAVAILABLE,
|
|
975
975
|
http::HTTP_STATUS_504_GATEWAY_TIMEOUT,
|
|
976
976
|
],
|
|
977
|
-
)
|
|
977
|
+
)
|
|
978
978
|
.send()?
|
|
979
979
|
.convert_rnf(ApiErrorKind::ProjectNotFound)
|
|
980
980
|
}
|
|
@@ -1007,7 +1007,7 @@ impl<'a> AuthenticatedApi<'a> {
|
|
|
1007
1007
|
http::HTTP_STATUS_503_SERVICE_UNAVAILABLE,
|
|
1008
1008
|
http::HTTP_STATUS_504_GATEWAY_TIMEOUT,
|
|
1009
1009
|
],
|
|
1010
|
-
)
|
|
1010
|
+
)
|
|
1011
1011
|
.send()?
|
|
1012
1012
|
.convert_rnf(ApiErrorKind::ReleaseNotFound)
|
|
1013
1013
|
}
|
|
@@ -1038,7 +1038,7 @@ impl<'a> AuthenticatedApi<'a> {
|
|
|
1038
1038
|
http::HTTP_STATUS_503_SERVICE_UNAVAILABLE,
|
|
1039
1039
|
http::HTTP_STATUS_504_GATEWAY_TIMEOUT,
|
|
1040
1040
|
],
|
|
1041
|
-
)
|
|
1041
|
+
)
|
|
1042
1042
|
.send()?
|
|
1043
1043
|
.convert_rnf(ApiErrorKind::ReleaseNotFound)
|
|
1044
1044
|
}
|
|
@@ -1415,8 +1415,8 @@ impl RegionSpecificApi<'_> {
|
|
|
1415
1415
|
)
|
|
1416
1416
|
})?,
|
|
1417
1417
|
&[http::HTTP_STATUS_507_INSUFFICIENT_STORAGE],
|
|
1418
|
-
)
|
|
1419
|
-
.progress_bar_mode(ProgressBarMode::Request)
|
|
1418
|
+
)
|
|
1419
|
+
.progress_bar_mode(ProgressBarMode::Request)
|
|
1420
1420
|
.send()?
|
|
1421
1421
|
.convert()
|
|
1422
1422
|
}
|
|
@@ -1481,8 +1481,8 @@ impl RegionSpecificApi<'_> {
|
|
|
1481
1481
|
http::HTTP_STATUS_503_SERVICE_UNAVAILABLE,
|
|
1482
1482
|
http::HTTP_STATUS_504_GATEWAY_TIMEOUT,
|
|
1483
1483
|
],
|
|
1484
|
-
)
|
|
1485
|
-
.progress_bar_mode(progress_bar_mode)
|
|
1484
|
+
)
|
|
1485
|
+
.progress_bar_mode(progress_bar_mode)
|
|
1486
1486
|
.send()?;
|
|
1487
1487
|
if resp.status() == 409 {
|
|
1488
1488
|
Ok(None)
|
|
@@ -1718,9 +1718,9 @@ impl ApiRequest {
|
|
|
1718
1718
|
Ok(self)
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
pub fn with_body(mut self, body: Vec<u8>) ->
|
|
1721
|
+
pub fn with_body(mut self, body: Vec<u8>) -> Self {
|
|
1722
1722
|
self.body = Some(body);
|
|
1723
|
-
|
|
1723
|
+
self
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
1726
|
/// attaches some form data to the request.
|
|
@@ -1739,19 +1739,16 @@ impl ApiRequest {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
|
|
1741
1741
|
/// enables a progress bar.
|
|
1742
|
-
pub fn progress_bar_mode(mut self, mode: ProgressBarMode) ->
|
|
1742
|
+
pub fn progress_bar_mode(mut self, mode: ProgressBarMode) -> Self {
|
|
1743
1743
|
self.progress_bar_mode = mode;
|
|
1744
|
-
|
|
1744
|
+
self
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
|
-
pub fn with_retry(
|
|
1748
|
-
mut self,
|
|
1749
|
-
max_retries: u32,
|
|
1750
|
-
retry_on_statuses: &'static [u32],
|
|
1751
|
-
) -> ApiResult<Self> {
|
|
1747
|
+
pub fn with_retry(mut self, max_retries: u32, retry_on_statuses: &'static [u32]) -> Self {
|
|
1752
1748
|
self.max_retries = max_retries;
|
|
1753
1749
|
self.retry_on_statuses = retry_on_statuses;
|
|
1754
|
-
|
|
1750
|
+
|
|
1751
|
+
self
|
|
1755
1752
|
}
|
|
1756
1753
|
|
|
1757
1754
|
/// Get a copy of the header list
|
|
@@ -21,7 +21,7 @@ pub fn make_command(command: Command) -> Command {
|
|
|
21
21
|
|
|
22
22
|
fn update_config(config: &Config, token: AuthToken) -> Result<()> {
|
|
23
23
|
let mut new_cfg = config.clone();
|
|
24
|
-
new_cfg.set_auth(Auth::Token(token))
|
|
24
|
+
new_cfg.set_auth(Auth::Token(token));
|
|
25
25
|
new_cfg.save()?;
|
|
26
26
|
Ok(())
|
|
27
27
|
}
|
|
@@ -69,7 +69,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
let test_cfg = config.make_copy(|cfg| {
|
|
72
|
-
cfg.set_auth(Auth::Token(token.clone()))
|
|
72
|
+
cfg.set_auth(Auth::Token(token.clone()));
|
|
73
73
|
Ok(())
|
|
74
74
|
})?;
|
|
75
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//! This module implements the root command of the CLI tool.
|
|
2
2
|
|
|
3
|
-
use anyhow::
|
|
3
|
+
use anyhow::Result;
|
|
4
4
|
use clap::{value_parser, Arg, ArgAction, ArgMatches, Command};
|
|
5
5
|
use clap_complete::{generate, Generator, Shell};
|
|
6
6
|
use log::{debug, info, set_logger, set_max_level, LevelFilter};
|
|
@@ -15,7 +15,7 @@ use crate::constants::{ARCH, PLATFORM, VERSION};
|
|
|
15
15
|
use crate::utils::auth_token::{redact_token_from_string, AuthToken};
|
|
16
16
|
use crate::utils::logging::set_quiet_mode;
|
|
17
17
|
use crate::utils::logging::Logger;
|
|
18
|
-
use crate::utils::system::{
|
|
18
|
+
use crate::utils::system::{load_dotenv, print_error, set_panic_hook, QuietExit};
|
|
19
19
|
use crate::utils::update::run_sentrycli_update_nagger;
|
|
20
20
|
use crate::utils::value_parsers::auth_token_parser;
|
|
21
21
|
|
|
@@ -103,19 +103,22 @@ fn preexecute_hooks() -> Result<bool> {
|
|
|
103
103
|
Ok(false)
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
// This function needs to return Result<bool> to remain compatible with the
|
|
107
|
+
// macOS implementation.
|
|
108
|
+
#[expect(clippy::unnecessary_wraps)]
|
|
106
109
|
#[cfg(not(target_os = "macos"))]
|
|
107
110
|
fn sentry_react_native_xcode_wrap() -> Result<bool> {
|
|
108
111
|
Ok(false)
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
|
|
112
|
-
fn configure_args(config: &mut Config, matches: &ArgMatches)
|
|
115
|
+
fn configure_args(config: &mut Config, matches: &ArgMatches) {
|
|
113
116
|
if let Some(api_key) = matches.get_one::<String>("api_key") {
|
|
114
|
-
config.set_auth(Auth::Key(api_key.to_owned()))
|
|
117
|
+
config.set_auth(Auth::Key(api_key.to_owned()));
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
if let Some(auth_token) = matches.get_one::<AuthToken>("auth_token") {
|
|
118
|
-
config.set_auth(Auth::Token(auth_token.to_owned()))
|
|
121
|
+
config.set_auth(Auth::Token(auth_token.to_owned()));
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
if let Some(url) = matches.get_one::<String>("url") {
|
|
@@ -126,20 +129,6 @@ fn configure_args(config: &mut Config, matches: &ArgMatches) -> Result<()> {
|
|
|
126
129
|
let headers = headers.map(|h| h.to_owned()).collect();
|
|
127
130
|
config.set_headers(headers);
|
|
128
131
|
}
|
|
129
|
-
|
|
130
|
-
Ok(())
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
pub fn get_log_level(matches: &ArgMatches) -> Result<Option<LevelFilter>> {
|
|
134
|
-
match matches.get_one::<String>("log_level") {
|
|
135
|
-
Some(log_level) => match log_level.parse() {
|
|
136
|
-
Ok(log_level) => Ok(Some(log_level)),
|
|
137
|
-
Err(_) => {
|
|
138
|
-
bail!("Unknown log level: {}", log_level);
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
None => Ok(None),
|
|
142
|
-
}
|
|
143
132
|
}
|
|
144
133
|
|
|
145
134
|
fn app() -> Command {
|
|
@@ -181,10 +170,10 @@ fn app() -> Command {
|
|
|
181
170
|
Arg::new("log_level")
|
|
182
171
|
.value_name("LOG_LEVEL")
|
|
183
172
|
.long("log-level")
|
|
184
|
-
.value_parser(
|
|
173
|
+
.value_parser(value_parser!(LevelFilter))
|
|
185
174
|
.ignore_case(true)
|
|
186
175
|
.global(true)
|
|
187
|
-
.help("Set the log output verbosity."),
|
|
176
|
+
.help("Set the log output verbosity. [possible values: trace, debug, info, warn, error]"),
|
|
188
177
|
)
|
|
189
178
|
.arg(
|
|
190
179
|
Arg::new("quiet")
|
|
@@ -254,15 +243,15 @@ pub fn execute() -> Result<()> {
|
|
|
254
243
|
let mut cmd = app();
|
|
255
244
|
cmd = add_commands(cmd);
|
|
256
245
|
let matches = cmd.get_matches();
|
|
257
|
-
let log_level =
|
|
258
|
-
if let Some(log_level) = log_level {
|
|
246
|
+
let log_level = matches.get_one::<LevelFilter>("log_level");
|
|
247
|
+
if let Some(&log_level) = log_level {
|
|
259
248
|
set_max_level(log_level);
|
|
260
249
|
}
|
|
261
250
|
let mut config = Config::from_cli_config()?;
|
|
262
|
-
configure_args(&mut config, &matches)
|
|
251
|
+
configure_args(&mut config, &matches);
|
|
263
252
|
set_quiet_mode(matches.get_flag("quiet"));
|
|
264
253
|
|
|
265
|
-
if let Some(log_level) = log_level {
|
|
254
|
+
if let Some(&log_level) = log_level {
|
|
266
255
|
config.set_log_level(log_level);
|
|
267
256
|
}
|
|
268
257
|
|
|
@@ -331,7 +320,7 @@ pub fn execute() -> Result<()> {
|
|
|
331
320
|
}
|
|
332
321
|
|
|
333
322
|
fn setup() {
|
|
334
|
-
|
|
323
|
+
set_panic_hook();
|
|
335
324
|
|
|
336
325
|
// Store the result of loading the dotenv file. We must load the dotenv file
|
|
337
326
|
// before setting the log level, as the log level can be set in the dotenv
|
|
@@ -171,14 +171,14 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
171
171
|
ext == OsStr::new("bundle");
|
|
172
172
|
then {
|
|
173
173
|
let url = format!("~/{filename}");
|
|
174
|
-
processor.add(&url, ReleaseFileSearch::collect_file(entry.path())?)
|
|
174
|
+
processor.add(&url, ReleaseFileSearch::collect_file(entry.path())?);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
processor.rewrite(&[here_str])?;
|
|
181
|
-
processor.add_sourcemap_references()
|
|
181
|
+
processor.add_sourcemap_references();
|
|
182
182
|
|
|
183
183
|
let chunk_upload_options = api.authenticated()?.get_chunk_upload_options(&org)?;
|
|
184
184
|
|