mdbook_angular/angular/
mod.rs

1mod builder;
2mod workspace;
3
4pub(crate) use builder::build;
5
6use workspace::AngularWorkspace;
7
8use crate::{Config, Result};
9
10/// Stop any running background process for the given configuration
11///
12/// # Errors
13///
14/// This function will return an error if any errors occur trying to detect or
15/// stop the process. This is only likely to happen when trying to stop a
16/// background process not belonging to the current user.
17#[cfg_attr(not(all(unix, feature = "background")), allow(unused_variables))]
18pub fn stop_background_process(config: &Config) -> Result<()> {
19	#[cfg(not(unix))]
20	{
21		log::warn!("The background option is not supported on windows");
22		Ok(())
23	}
24
25	#[cfg(not(feature = "background"))]
26	{
27		log::warn!("This build doesn't support the background option");
28		Ok(())
29	}
30
31	#[cfg(all(unix, feature = "background"))]
32	return builder::stop_background_process(config);
33}