mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-23 07:41:03 +00:00
21 lines
390 B
Rust
21 lines
390 B
Rust
yazi_macro::mod_pub!(actions);
|
|
|
|
yazi_macro::mod_flat!(args boot);
|
|
|
|
use clap::Parser;
|
|
use yazi_shared::RoCell;
|
|
|
|
pub static ARGS: RoCell<Args> = RoCell::new();
|
|
pub static BOOT: RoCell<Boot> = RoCell::new();
|
|
|
|
pub fn init() {
|
|
ARGS.with(<_>::parse);
|
|
BOOT.init(<_>::from(&*ARGS));
|
|
|
|
actions::Actions::act(&ARGS);
|
|
}
|
|
|
|
pub fn init_default() {
|
|
ARGS.with(<_>::default);
|
|
BOOT.with(<_>::default);
|
|
}
|