fix(bun): change default icon (#5880)

* feat: change bun icon #5871

* fix: reverts docs
This commit is contained in:
Ramy 2024-03-30 09:38:19 +01:00 committed by GitHub
parent df477694d3
commit be4e97c2d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@
"disabled": false,
"format": "via [$symbol($version )]($style)",
"style": "bold red",
"symbol": "🍞 ",
"symbol": "🥟 ",
"version_format": "v${raw}"
},
"allOf": [
@ -2119,7 +2119,7 @@
"type": "string"
},
"symbol": {
"default": "🍞 ",
"default": "🥟 ",
"type": "string"
},
"style": {

View File

@ -628,7 +628,7 @@ By default the module will be shown if any of the following conditions are met:
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |

View File

@ -23,7 +23,7 @@ impl<'a> Default for BunConfig<'a> {
BunConfig {
format: "via [$symbol($version )]($style)",
version_format: "v${raw}",
symbol: "🍞 ",
symbol: "🥟 ",
style: "bold red",
disabled: false,
detect_extensions: vec![],

View File

@ -89,7 +89,7 @@ mod tests {
let dir = tempfile::tempdir()?;
File::create(dir.path().join("bun.lockb"))?.sync_all()?;
let actual = ModuleRenderer::new("bun").path(dir.path()).collect();
let expected = Some(format!("via {}", Color::Red.bold().paint("🍞 v0.1.4 ")));
let expected = Some(format!("via {}", Color::Red.bold().paint("🥟 v0.1.4 ")));
assert_eq!(expected, actual);
dir.close()
}
@ -102,7 +102,7 @@ mod tests {
.path(dir.path())
.cmd("bun --version", None)
.collect();
let expected = Some(format!("via {}", Color::Red.bold().paint("🍞 ")));
let expected = Some(format!("via {}", Color::Red.bold().paint("🥟 ")));
assert_eq!(expected, actual);
dir.close()
}