mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 16:21:04 +00:00
13 lines
317 B
Rust
13 lines
317 B
Rust
use mlua::{Function, Lua};
|
|
|
|
use super::Utils;
|
|
|
|
impl Utils {
|
|
pub(super) fn target_os(lua: &Lua) -> mlua::Result<Function> {
|
|
lua.create_function(|_, ()| Ok(std::env::consts::OS))
|
|
}
|
|
|
|
pub(super) fn target_family(lua: &Lua) -> mlua::Result<Function> {
|
|
lua.create_function(|_, ()| Ok(std::env::consts::FAMILY))
|
|
}
|
|
}
|