aboutsummaryrefslogtreecommitdiffstats
path: root/xtask/src/flags.rs
diff options
context:
space:
mode:
authorhar7an <99636919+har7an@users.noreply.github.com>2024-01-20 12:47:21 +0000
committerGitHub <noreply@github.com>2024-01-20 12:47:21 +0000
commit592cabeda8be80948e277887979696c815991ffc (patch)
tree6585d18e654554f51822a5e6189ee0a3f65fef69 /xtask/src/flags.rs
parentperformance(terminal): improvements to reflow performance by removing O(n^2) ... (diff)
downloadsl0ppij-592cabeda8be80948e277887979696c815991ffc.tar.gz
sl0ppij-592cabeda8be80948e277887979696c815991ffc.tar.xz
sl0ppij-592cabeda8be80948e277887979696c815991ffc.zip
xtask: Disable pusing during publish (#3040)
* xtask: Add `--no-push` flag to `publish` which can be used when simulating releases to work without a writable git fork of the zellij code. * xtask: Fix borrow issues * xtask/pipe: Require lockfile in publish to avoid errors from invalid dependency versions. * CHANGELOG: Add PR #3040.
Diffstat (limited to 'xtask/src/flags.rs')
-rw-r--r--xtask/src/flags.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/xtask/src/flags.rs b/xtask/src/flags.rs
index dd076f53..1c693626 100644
--- a/xtask/src/flags.rs
+++ b/xtask/src/flags.rs
@@ -38,6 +38,8 @@ xflags::xflags! {
cmd publish {
/// Perform a dry-run (don't push/publish anything)
optional --dry-run
+ /// Publish but don't push a commit to git (only works with '--cargo-registry')
+ optional --no-push
/// Push commit to custom git remote
optional --git-remote remote: OsString
/// Publish crates to custom registry
@@ -159,6 +161,7 @@ pub struct Manpage;
#[derive(Debug)]
pub struct Publish {
pub dry_run: bool,
+ pub no_push: bool,
pub git_remote: Option<OsString>,
pub cargo_registry: Option<OsString>,
}