Skip to content

Commit 6a06085

Browse files
authored
Merge pull request #1580 from cgwalters/unhide-soft
Un-hide soft-reboot
2 parents fbd06e8 + 849a634 commit 6a06085

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

crates/lib/src/cli.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ 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-
// 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)]
88+
#[clap(long = "soft-reboot", conflicts_with = "check")]
9189
pub(crate) soft_reboot: Option<SoftRebootMode>,
9290

9391
#[clap(flatten)]
@@ -113,9 +111,7 @@ pub(crate) struct SwitchOpts {
113111
///
114112
/// 'required' will fail if soft reboot is not available.
115113
/// 'auto' will use soft reboot if available, otherwise fall back to regular 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)]
114+
#[clap(long = "soft-reboot")]
119115
pub(crate) soft_reboot: Option<SoftRebootMode>,
120116

121117
/// The transport; e.g. oci, oci-archive, containers-storage. Defaults to `registry`.
@@ -166,9 +162,7 @@ pub(crate) struct RollbackOpts {
166162
///
167163
/// 'required' will fail if soft reboot is not available.
168164
/// 'auto' will use soft reboot if available, otherwise fall back to regular 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)]
165+
#[clap(long = "soft-reboot")]
172166
pub(crate) soft_reboot: Option<SoftRebootMode>,
173167
}
174168

tmt/tests/booted/readonly/002-test-cli.nu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ tap begin "verify bootc status output formats"
55

66
assert equal (bootc switch blah:// e>| find "\u{1B}") []
77

8+
# Verify soft-reboot is in help
9+
bootc upgrade --help | grep -qF -e '--soft-reboot'
10+
811
tap ok

0 commit comments

Comments
 (0)