summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-31 16:10:31 +0100
committerGitHub <noreply@github.com>2024-01-31 16:10:31 +0100
commit560390c93cd56e5156ba6f8e66057181c1f5833f (patch)
treeacf62db9ef15d3dda2db8383dde177e8f02ccc16 /cli/args/flags.rs
parent81042fb875fc018ebda2044b61dfdc4fd1660f7a (diff)
chore(publish): add --no-fast-check flag (#22203)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index ae63b710c..3708f0d98 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -301,6 +301,7 @@ pub struct VendorFlags {
pub struct PublishFlags {
pub token: Option<String>,
pub dry_run: bool,
+ pub no_fast_check: bool,
}
#[derive(Clone, Debug, Eq, PartialEq)]
@@ -2384,6 +2385,12 @@ fn publish_subcommand() -> Command {
.help("Prepare the package for publishing performing all checks and validations without uploading")
.action(ArgAction::SetTrue),
)
+ .arg(
+ Arg::new("no-fast-check")
+ .long("no-fast-check")
+ .help("Skip Fast Check compatibility validation")
+ .action(ArgAction::SetTrue),
+ )
})
}
@@ -3817,6 +3824,7 @@ fn publish_parse(flags: &mut Flags, matches: &mut ArgMatches) {
flags.subcommand = DenoSubcommand::Publish(PublishFlags {
token: matches.remove_one("token"),
dry_run: matches.get_flag("dry-run"),
+ no_fast_check: matches.get_flag("no-fast-check"),
});
}