starship 0.37.0

The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{Context, Module};
use crate::config::SegmentConfig;

/// Creates a module for the line break
pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
    const LINE_ENDING: &str = "\n";

    let mut module = context.new_module("line_break");

    module.get_prefix().set_value("");
    module.get_suffix().set_value("");

    module.create_segment("character", &SegmentConfig::new(LINE_ENDING));

    Some(module)
}