Structure the prompt as a function that returns a string instead of writing directly to stdout. This makes it easier to embed Starship into other Rust programs such as shells written in Rust. It also decouples the arguments from the context for more programmatic initialization of the context. |
||
---|---|---|
.. | ||
configs | ||
init | ||
modules | ||
config.rs | ||
context.rs | ||
lib.rs | ||
main.rs | ||
module.rs | ||
print.rs | ||
segment.rs | ||
utils.rs |