Feature-gate job unfreeze behind "os" (#15339)

# Description

The `job unfreeze` command relies on the `os` feature of the
`nu-protocol` crate, which means that `nu-command` doesn't compile with
`--no-default-features`. This PR gates `job unfreeze` behind
`nu-command`'s `os` feature to avoid this.

No user-facing changes, no tests needed.
This commit is contained in:
Yash Thakur 2025-03-18 19:02:04 -04:00 committed by GitHub
parent 9cca4ec18b
commit 09674a0026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -454,7 +454,7 @@ pub fn add_shell_command_context(mut engine_state: EngineState) -> EngineState {
Job,
};
#[cfg(unix)]
#[cfg(all(unix, feature = "os"))]
bind_command! {
JobUnfreeze,
}

View File

@ -4,7 +4,7 @@ mod job_kill;
mod job_list;
mod job_spawn;
#[cfg(unix)]
#[cfg(all(unix, feature = "os"))]
mod job_unfreeze;
pub use is_admin::IsAdmin;
@ -14,5 +14,5 @@ pub use job_list::JobList;
pub use job_spawn::JobSpawn;
#[cfg(unix)]
#[cfg(all(unix, feature = "os"))]
pub use job_unfreeze::JobUnfreeze;