1
0
Fork 0
forked from wry/wry

cli: add config subcommand

This commit is contained in:
Julian Orth 2026-03-20 18:49:39 +01:00
parent 6727f3e4bc
commit 668188ff43
4 changed files with 119 additions and 4 deletions

View file

@ -1298,7 +1298,7 @@ async fn watch_config(persistent: Rc<PersistentState>) {
}
}
const CONFIG_TOML: &str = "config.toml";
pub const CONFIG_TOML: &str = "config.toml";
fn load_config(initial_load: bool, auto_reload: bool, persistent: &Rc<PersistentState>) {
let mut path = PathBuf::from(config_dir());
@ -1675,7 +1675,7 @@ fn create_command(exec: &Exec) -> Command {
command
}
const DEFAULT: &[u8] = include_bytes!("default-config.toml");
pub const DEFAULT: &[u8] = include_bytes!("default-config.toml");
pub fn configure() {
let mark_names = Default::default();