fix(bun): change default icon (#5880)
* feat: change bun icon #5871 * fix: reverts docs
This commit is contained in:
parent
df477694d3
commit
be4e97c2d9
|
@ -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": {
|
||||
|
|
|
@ -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. |
|
||||
|
|
|
@ -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![],
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue