From 560390c93cd56e5156ba6f8e66057181c1f5833f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 31 Jan 2024 16:10:31 +0100 Subject: chore(publish): add --no-fast-check flag (#22203) --- cli/args/flags.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/args') 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, 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"), }); } -- cgit v1.2.3