summaryrefslogtreecommitdiffstats
path: root/src/modules/line_break.rs
blob: a7bda251e33b4f82c6beef65f01c8616dad31041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::Segment;
use clap::ArgMatches;
use std::path::Path;

/// Creates a segment for the line break
pub fn segment(_current_dir: &Path, _args: &ArgMatches) -> Option<Segment> {
    const LINE_ENDING: &str = "\n";

    let mut segment = Segment::new("line_break");

    segment
        .set_value(LINE_ENDING)
        .set_prefix(None)
        .set_suffix(None);

    Some(segment)
}