mirror of
https://github.com/nushell/nushell.git
synced 2025-04-11 14:58:21 +02:00
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:
parent
9cca4ec18b
commit
09674a0026
@ -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,
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user