docs: added documentation, enforced documentation
All checks were successful
CI / build (push) Successful in 7m21s

This commit is contained in:
2026-01-01 18:37:40 +01:00
parent 5e1b0988fd
commit b3365afe5b
10 changed files with 113 additions and 29 deletions

View File

@@ -9,10 +9,12 @@ pub use api::{Context, ContextCommand, ContextConfig};
pub use manager::ContextManager;
use std::sync::Arc;
/// Obtain global context manager
pub fn manager() -> &'static ContextManager {
&manager::MANAGER
}
/// Obtain current context
pub fn current() -> Arc<Context> {
manager::MANAGER.current()
}