blob: abc1e49f7e1b3f27d20ec1dcf661e6af8cd46095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
mod character;
mod directory;
mod line_break;
mod nodejs;
use crate::context::Context;
use crate::segment::Segment;
pub fn handle(module: &str, context: &Context) -> Option<Segment> {
match module {
"dir" | "directory" => directory::segment(context),
"char" | "character" => character::segment(context),
"node" | "nodejs" => nodejs::segment(context),
"line_break" => line_break::segment(context),
_ => panic!("Unknown module: {}", module),
}
}
|