yazi_boot/
lib.rs

1yazi_macro::mod_pub!(actions);
2
3yazi_macro::mod_flat!(args boot);
4
5use clap::Parser;
6use yazi_shared::RoCell;
7
8pub static ARGS: RoCell<Args> = RoCell::new();
9pub static BOOT: RoCell<Boot> = RoCell::new();
10
11pub fn init() {
12	ARGS.with(<_>::parse);
13	BOOT.init(<_>::from(&*ARGS));
14
15	actions::Actions::act(&ARGS);
16}
17
18pub fn init_default() {
19	ARGS.with(<_>::default);
20	BOOT.with(<_>::default);
21}