Skip to content

Commit 0bb24c0

Browse files
authored
Merge pull request #1539 from jmarrero/hide-soft-reboot
cli: hide --soft-reboot as ostree side needs further stabilization
2 parents 662cdee + bf45f60 commit 0bb24c0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

crates/lib/src/cli.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ pub(crate) struct UpgradeOpts {
8585
///
8686
/// 'required' will fail if soft reboot is not available.
8787
/// 'auto' will use soft reboot if available, otherwise fall back to regular reboot.
88-
#[clap(long = "soft-reboot", conflicts_with = "check")]
88+
// Hidden because the ostree side needs further stabilization.
89+
// See: https://github.com/ostreedev/ostree/issues/3503
90+
#[clap(long = "soft-reboot", conflicts_with = "check", hide = true)]
8991
pub(crate) soft_reboot: Option<SoftRebootMode>,
9092

9193
#[clap(flatten)]
@@ -111,7 +113,9 @@ pub(crate) struct SwitchOpts {
111113
///
112114
/// 'required' will fail if soft reboot is not available.
113115
/// 'auto' will use soft reboot if available, otherwise fall back to regular reboot.
114-
#[clap(long = "soft-reboot")]
116+
// Hidden because the ostree side needs further stabilization.
117+
// See: https://github.com/ostreedev/ostree/issues/3503
118+
#[clap(long = "soft-reboot", hide = true)]
115119
pub(crate) soft_reboot: Option<SoftRebootMode>,
116120

117121
/// The transport; e.g. oci, oci-archive, containers-storage. Defaults to `registry`.
@@ -162,7 +166,9 @@ pub(crate) struct RollbackOpts {
162166
///
163167
/// 'required' will fail if soft reboot is not available.
164168
/// 'auto' will use soft reboot if available, otherwise fall back to regular reboot.
165-
#[clap(long = "soft-reboot")]
169+
// Hidden because the ostree side needs further stabilization.
170+
// See: https://github.com/ostreedev/ostree/issues/3503
171+
#[clap(long = "soft-reboot", hide = true)]
166172
pub(crate) soft_reboot: Option<SoftRebootMode>,
167173
}
168174

0 commit comments

Comments
 (0)