//! Onset's command-line tool, `on`. /// The release version (set by the release build), or the crate's. pub const VERSION: &str = match option_env!("ONSET_VERSION") { Some(v) => v, None => env!("CARGO_PKG_VERSION"), }; pub mod access; pub mod app; pub mod bridge; pub mod cmd; pub mod db; pub mod gc; pub mod host; pub mod history; pub mod ids; pub mod keys; pub mod lazy; pub mod lines; pub mod objects; pub mod purge; pub mod out; pub mod paths; pub mod remote; pub mod saver; pub mod seal; pub mod secrets; pub mod sessions; pub mod submodules; pub mod signin; pub mod sys; pub mod tags; pub mod wire; pub mod workspaces; pub mod ws; /// Whether `path` is covered by a rule written for `rule` (a file or folder). pub fn path_matches(path: &str, rule: &str) -> bool { onset_core::tree::under(path, rule.trim_matches('/')) }