sentry-cli 2.17.5__tar.gz → 2.18.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.17.5 → sentry_cli-2.18.0}/Cargo.lock +13 -13
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/Cargo.toml +2 -2
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/PKG-INFO +1 -1
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/sentry_cli.egg-info/PKG-INFO +1 -1
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/api.rs +4 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/upload.rs +7 -2
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/monitors/mod.rs +2 -4
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/monitors/run.rs +9 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/sourcemaps/inject.rs +5 -6
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/event.rs +2 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/LICENSE +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/MANIFEST.in +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/README.md +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/build.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/pyproject.toml +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/sentry_cli.egg-info/SOURCES.txt +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/sentry_cli.egg-info/dependency_links.txt +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/sentry_cli.egg-info/top_level.txt +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/setup.cfg +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/setup.py +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/bashsupport.sh +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/bash_hook.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/bundle_jvm.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/bundle_sources.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/check.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/find.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/debug_files/print_sources.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/deploys/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/deploys/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/deploys/new.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/events/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/events/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/files/delete.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/files/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/files/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/files/upload.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/info.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/issues/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/issues/mute.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/issues/resolve.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/issues/unresolve.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/login.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/monitors/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/organizations/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/organizations/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/projects/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/projects/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/react_native/appcenter.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/react_native/gradle.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/react_native/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/react_native/xcode.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/archive.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/delete.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/finalize.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/info.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/new.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/propose_version.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/restore.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/releases/set_commits.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/repos/list.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/repos/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/send_envelope.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/send_event.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/sourcemaps/explain.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/sourcemaps/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/sourcemaps/resolve.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/sourcemaps/upload.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/uninstall.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/update.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/upload_dif.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/upload_dsym.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/commands/upload_proguard.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/config.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/constants.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/main.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/android.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/appcenter.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/args.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/chunks.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/codepush.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/cordova.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/dif.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/dif_upload.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/enc.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/file_search.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/file_upload.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/formatting.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/fs.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/http.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/logging.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/mod.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/progress.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/releases.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/retry.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_default_twenty.snap +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_ignore_missing.snap +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_base.snap +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/snapshots/sentry_cli__utils__vcs__generate_patch_set_previous_commit.snap +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/snapshots/sentry_cli__utils__vcs__get_commits_from_git.snap +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/sourcemaps/inject.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/sourcemaps.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/system.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/ui.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/update.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/vcs.rs +0 -0
- {sentry_cli-2.17.5 → sentry_cli-2.18.0}/src/utils/xcode.rs +0 -0
|
@@ -2159,9 +2159,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
|
|
2159
2159
|
|
|
2160
2160
|
[[package]]
|
|
2161
2161
|
name = "sentry"
|
|
2162
|
-
version = "0.31.
|
|
2162
|
+
version = "0.31.1"
|
|
2163
2163
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2164
|
-
checksum = "
|
|
2164
|
+
checksum = "37dd6c0cdca6b1d1ca44cde7fff289f2592a97965afec870faa7b81b9fc87745"
|
|
2165
2165
|
dependencies = [
|
|
2166
2166
|
"curl",
|
|
2167
2167
|
"httpdate",
|
|
@@ -2172,9 +2172,9 @@ dependencies = [
|
|
|
2172
2172
|
|
|
2173
2173
|
[[package]]
|
|
2174
2174
|
name = "sentry-anyhow"
|
|
2175
|
-
version = "0.31.
|
|
2175
|
+
version = "0.31.1"
|
|
2176
2176
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2177
|
-
checksum = "
|
|
2177
|
+
checksum = "d9c3d7032fff178c77c107c32c6d3337b12847adf67165ccc876c898e7154b00"
|
|
2178
2178
|
dependencies = [
|
|
2179
2179
|
"anyhow",
|
|
2180
2180
|
"sentry-backtrace",
|
|
@@ -2183,9 +2183,9 @@ dependencies = [
|
|
|
2183
2183
|
|
|
2184
2184
|
[[package]]
|
|
2185
2185
|
name = "sentry-backtrace"
|
|
2186
|
-
version = "0.31.
|
|
2186
|
+
version = "0.31.1"
|
|
2187
2187
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2188
|
-
checksum = "
|
|
2188
|
+
checksum = "c029fe8317cdd75cb2b52c600bab4e2ef64c552198e669ba874340447f330962"
|
|
2189
2189
|
dependencies = [
|
|
2190
2190
|
"backtrace",
|
|
2191
2191
|
"once_cell",
|
|
@@ -2195,7 +2195,7 @@ dependencies = [
|
|
|
2195
2195
|
|
|
2196
2196
|
[[package]]
|
|
2197
2197
|
name = "sentry-cli"
|
|
2198
|
-
version = "2.
|
|
2198
|
+
version = "2.18.0"
|
|
2199
2199
|
dependencies = [
|
|
2200
2200
|
"anyhow",
|
|
2201
2201
|
"anylog",
|
|
@@ -2265,9 +2265,9 @@ dependencies = [
|
|
|
2265
2265
|
|
|
2266
2266
|
[[package]]
|
|
2267
2267
|
name = "sentry-contexts"
|
|
2268
|
-
version = "0.31.
|
|
2268
|
+
version = "0.31.1"
|
|
2269
2269
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2270
|
-
checksum = "
|
|
2270
|
+
checksum = "bc575098d73c8b942b589ab453b06e4c43527556dd8f95532220d1b54d7c6b4b"
|
|
2271
2271
|
dependencies = [
|
|
2272
2272
|
"hostname",
|
|
2273
2273
|
"libc",
|
|
@@ -2279,9 +2279,9 @@ dependencies = [
|
|
|
2279
2279
|
|
|
2280
2280
|
[[package]]
|
|
2281
2281
|
name = "sentry-core"
|
|
2282
|
-
version = "0.31.
|
|
2282
|
+
version = "0.31.1"
|
|
2283
2283
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2284
|
-
checksum = "
|
|
2284
|
+
checksum = "20216140001bbf05895f013abd0dae4df58faee24e016d54cbf107f070bac56b"
|
|
2285
2285
|
dependencies = [
|
|
2286
2286
|
"once_cell",
|
|
2287
2287
|
"rand",
|
|
@@ -2292,9 +2292,9 @@ dependencies = [
|
|
|
2292
2292
|
|
|
2293
2293
|
[[package]]
|
|
2294
2294
|
name = "sentry-types"
|
|
2295
|
-
version = "0.31.
|
|
2295
|
+
version = "0.31.1"
|
|
2296
2296
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2297
|
-
checksum = "
|
|
2297
|
+
checksum = "d7f6959d8cb3a77be27e588eef6ce9a2a469651a556d9de662e4d07e5ace4232"
|
|
2298
2298
|
dependencies = [
|
|
2299
2299
|
"debugid",
|
|
2300
2300
|
"getrandom",
|
|
@@ -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.18.0"
|
|
6
6
|
edition = "2021"
|
|
7
7
|
rust-version = "1.65"
|
|
8
8
|
|
|
@@ -57,7 +57,7 @@ regex = "1.7.1"
|
|
|
57
57
|
runas = "1.0.0"
|
|
58
58
|
rust-ini = "0.18.0"
|
|
59
59
|
semver = "1.0.16"
|
|
60
|
-
sentry = { version = "0.31.
|
|
60
|
+
sentry = { version = "0.31.1", default-features = false, features = [
|
|
61
61
|
"anyhow",
|
|
62
62
|
"curl",
|
|
63
63
|
"contexts",
|
|
@@ -2490,11 +2490,13 @@ pub struct MonitorCheckIn {
|
|
|
2490
2490
|
pub id: Uuid,
|
|
2491
2491
|
pub status: Option<MonitorCheckinStatus>,
|
|
2492
2492
|
pub duration: Option<u64>,
|
|
2493
|
+
pub environment: Option<String>,
|
|
2493
2494
|
}
|
|
2494
2495
|
|
|
2495
2496
|
#[derive(Debug, Serialize)]
|
|
2496
2497
|
pub struct CreateMonitorCheckIn {
|
|
2497
2498
|
pub status: MonitorCheckinStatus,
|
|
2499
|
+
pub environment: String,
|
|
2498
2500
|
}
|
|
2499
2501
|
|
|
2500
2502
|
#[derive(Debug, Serialize, Default)]
|
|
@@ -2503,6 +2505,8 @@ pub struct UpdateMonitorCheckIn {
|
|
|
2503
2505
|
pub status: Option<MonitorCheckinStatus>,
|
|
2504
2506
|
#[serde(skip_serializing_if = "Option::is_none")]
|
|
2505
2507
|
pub duration: Option<u64>,
|
|
2508
|
+
#[serde(skip_serializing_if = "Option::is_none")]
|
|
2509
|
+
pub environment: Option<String>,
|
|
2506
2510
|
}
|
|
2507
2511
|
|
|
2508
2512
|
#[derive(Deserialize, Debug)]
|
|
@@ -4,6 +4,7 @@ use std::str::{self, FromStr};
|
|
|
4
4
|
use anyhow::{bail, format_err, Result};
|
|
5
5
|
use clap::{builder::PossibleValuesParser, Arg, ArgAction, ArgMatches, Command};
|
|
6
6
|
use console::style;
|
|
7
|
+
use itertools::Itertools;
|
|
7
8
|
use log::info;
|
|
8
9
|
use symbolic::common::DebugId;
|
|
9
10
|
use symbolic::debuginfo::FileFormat;
|
|
@@ -20,8 +21,12 @@ use crate::utils::xcode::{InfoPlist, MayDetach};
|
|
|
20
21
|
static DERIVED_DATA_FOLDER: &str = "Library/Developer/Xcode/DerivedData";
|
|
21
22
|
|
|
22
23
|
pub fn make_command(command: Command) -> Command {
|
|
23
|
-
let
|
|
24
|
-
|
|
24
|
+
let types = DifType::all_names()
|
|
25
|
+
.iter()
|
|
26
|
+
.filter(|&name| name != &"proguard")
|
|
27
|
+
.chain(&["bcsymbolmap"])
|
|
28
|
+
.sorted_by(|a, b| Ord::cmp(&a, &b))
|
|
29
|
+
.collect::<Vec<_>>();
|
|
25
30
|
|
|
26
31
|
command
|
|
27
32
|
.about("Upload debugging information files.")
|
|
@@ -21,11 +21,9 @@ pub fn make_command(mut command: Command) -> Command {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
command = command
|
|
24
|
-
.about("Manage monitors on Sentry.")
|
|
24
|
+
.about("Manage monitors on Sentry [beta].")
|
|
25
25
|
.subcommand_required(true)
|
|
26
|
-
.arg_required_else_help(true)
|
|
27
|
-
// Beta feature Left hidden while we iterate on this product
|
|
28
|
-
.hide(true);
|
|
26
|
+
.arg_required_else_help(true);
|
|
29
27
|
|
|
30
28
|
each_subcommand!(add_subcommand);
|
|
31
29
|
command
|
|
@@ -19,6 +19,12 @@ pub fn make_command(command: Command) -> Command {
|
|
|
19
19
|
.help("The monitor slug.")
|
|
20
20
|
.required(true),
|
|
21
21
|
)
|
|
22
|
+
.arg(
|
|
23
|
+
Arg::new("environment")
|
|
24
|
+
.short('e')
|
|
25
|
+
.default_value("production")
|
|
26
|
+
.help("Specify the environment of the monitor."),
|
|
27
|
+
)
|
|
22
28
|
.arg(
|
|
23
29
|
Arg::new("allow_failure")
|
|
24
30
|
.short('f')
|
|
@@ -47,6 +53,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
let monitor_slug = matches.get_one::<String>("monitor_slug").unwrap();
|
|
56
|
+
let environment = matches.get_one::<String>("environment").unwrap();
|
|
50
57
|
|
|
51
58
|
let allow_failure = matches.get_flag("allow_failure");
|
|
52
59
|
let args: Vec<_> = matches.get_many::<String>("args").unwrap().collect();
|
|
@@ -56,6 +63,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
56
63
|
monitor_slug,
|
|
57
64
|
&CreateMonitorCheckIn {
|
|
58
65
|
status: MonitorCheckinStatus::InProgress,
|
|
66
|
+
environment: environment.to_string(),
|
|
59
67
|
},
|
|
60
68
|
);
|
|
61
69
|
|
|
@@ -93,6 +101,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
93
101
|
let elapsed = started.elapsed();
|
|
94
102
|
elapsed.as_secs() * 1000 + u64::from(elapsed.subsec_millis())
|
|
95
103
|
}),
|
|
104
|
+
environment: Some(environment.to_string()),
|
|
96
105
|
},
|
|
97
106
|
)
|
|
98
107
|
.ok();
|
|
@@ -89,18 +89,17 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
|
|
|
89
89
|
let mut extensions = matches
|
|
90
90
|
.get_many::<String>("extensions")
|
|
91
91
|
.map(|extensions| extensions.map(|ext| ext.trim_start_matches('.')).collect())
|
|
92
|
-
.unwrap_or_else(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
extensions.push("mjs");
|
|
97
|
-
}
|
|
92
|
+
.unwrap_or_else(|| vec!["js", "cjs", "mjs"]);
|
|
93
|
+
|
|
94
|
+
// Sourcemaps should be discovered regardless of which JavaScript extensions have been selected.
|
|
95
|
+
extensions.push("map");
|
|
98
96
|
|
|
99
97
|
for path in paths {
|
|
100
98
|
println!("> Searching {}", path.display());
|
|
101
99
|
let sources = ReleaseFileSearch::new(path)
|
|
102
100
|
.ignore_file(ignore_file)
|
|
103
101
|
.ignores(&ignores)
|
|
102
|
+
.extensions(extensions.clone())
|
|
104
103
|
.collect_files()?;
|
|
105
104
|
for source in sources {
|
|
106
105
|
let url = path_as_url(&source.path);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|