Skip to content

Commit

Permalink
fix(buf): broken icon on windows 10 (#4689)
Browse files Browse the repository at this point in the history
Closes #4608
  • Loading branch information
Funinja authored Dec 9, 2022
1 parent c9de67b commit 7341607
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"disabled": false,
"format": "with [$symbol($version )]($style)",
"style": "bold blue",
"symbol": "🦬 ",
"symbol": "🐃 ",
"version_format": "v${raw}"
},
"allOf": [
Expand Down Expand Up @@ -1854,7 +1854,7 @@
"type": "string"
},
"symbol": {
"default": "🦬 ",
"default": "🐃 ",
"type": "string"
},
"style": {
Expand Down
2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
| ------------------- | ----------------------------------------------- | ----------------------------------------------------- |
| `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. |
| `version_format` | `'v${raw}'` | The version format. |
| `symbol` | `'🦬 '` | The symbol used before displaying the version of Buf. |
| `symbol` | `'🐃 '` | The symbol used before displaying the version of Buf. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
Expand Down
2 changes: 1 addition & 1 deletion src/configs/buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl<'a> Default for BufConfig<'a> {
BufConfig {
format: "with [$symbol($version )]($style)",
version_format: "v${raw}",
symbol: "🦬 ",
symbol: "🐃 ",
style: "bold blue",
disabled: false,
detect_extensions: vec![],
Expand Down
5 changes: 3 additions & 2 deletions src/modules/buf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::{Context, Module, ModuleConfig};

use crate::configs::buf::BufConfig;
use crate::formatter::StringFormatter;
use crate::formatter::VersionFormatter;
Expand Down Expand Up @@ -103,8 +102,10 @@ mod tests {
.sync_all()
.unwrap();
let actual = ModuleRenderer::new("buf").path(dir.path()).collect();
let expected = Some(format!("with {}", Color::Blue.bold().paint("🦬 v1.0.0 ")));

let expected = Some(format!("with {}", Color::Blue.bold().paint("🐃 v1.0.0 ")));
assert_eq!(expected, actual);

dir.close().unwrap();
}

Expand Down

0 comments on commit 7341607

Please sign in to comment.