Home
last modified time | relevance | path

Searched refs:map (Results 1 – 4 of 4) sorted by relevance

/NovaShell/src/shell/command/
H A Dhelp.rs18 let map = HELP_MAP.as_ref().unwrap().lock().unwrap(); in help() localVariable
19 for (name, func) in map.iter() { in help()
27 let mut map = HELP_MAP.as_ref().unwrap().lock().unwrap(); in init() localVariable
29 let mut insert = |tuple: (String, fn() -> ())| map.insert(tuple.0, tuple.1); in init()
H A Dmod.rs38 pub fn map() -> Option<Arc<Mutex<CommandMap>>> { in map() method
44 let mut map = BUILD_IN_CMD.as_ref().unwrap().lock().unwrap(); in init() localVariable
46 map.insert(tuple.0, tuple.1) in init()
/NovaShell/src/shell/
H A Dmod.rs40 if BuildInCmd::map().is_none() { in new()
58 let map = BuildInCmd::map(); in create_backend_thread() localVariable
63 for child in pipeline.execute(map.clone()) { in create_backend_thread()
139 for mut child in pipeline.execute(BuildInCmd::map().clone()) { in exec_commands_in_line()
397 for (cmd, _) in BuildInCmd::map().as_ref().unwrap().lock().unwrap().iter() { in complete_command()
/NovaShell/src/
H A Dparser.rs400 if let Some(ref map) = internal_commands { in execute()
401 let map = map.lock().unwrap(); in execute() localVariable
402 if let Some(f) = map.get(&cmd.name) { in execute()