Add README.md badges (#5)
This commit is contained in:
parent
d2cda32c87
commit
ab5490bea6
|
@ -1,5 +1,9 @@
|
|||
<h3 align="center">Starship ✨🚀</h3>
|
||||
<p align="center">The cross-shell prompt for astronauts.</p>
|
||||
<p align="center">
|
||||
<a href="https://dev.azure.com/starship-control/starship/_build"><img src="https://badgen.net/azure-pipelines/starship-control/starship/Starship%20Test%20Suite" alt="Azure Pipelines Build Status"></a>
|
||||
<a href="https://discord.gg/Zpek73"><img src="https://badgen.net/badge/chat/on%20discord/7289da" alt="Chat on Discord"></a>
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ fn get_repo_root(repo: &Repository) -> &Path {
|
|||
}
|
||||
|
||||
/// Contract the root component of a path
|
||||
///
|
||||
///
|
||||
/// Replaces the `top_level_path` in a given `full_path` with the provided
|
||||
/// `top_level_replacement`.
|
||||
fn contract_path(full_path: &Path, top_level_path: &Path, top_level_replacement: &str) -> String {
|
||||
|
@ -86,7 +86,7 @@ fn contract_path(full_path: &Path, top_level_path: &Path, top_level_replacement:
|
|||
}
|
||||
|
||||
/// Truncate a path to only have a set number of path components
|
||||
///
|
||||
///
|
||||
/// Will truncate a path to only show the last `length` components in a path.
|
||||
/// If a length of `0` is provided, the path will not be truncated.
|
||||
fn truncate(dir_string: String, length: usize) -> String {
|
||||
|
|
Loading…
Reference in New Issue