fix: remove double spaces in default values (#6649)

Command run: `for file in $(rg --hidden '".  "' -l); do sed -i '/".  "/s/  ",/ ",/' $file; done`
This commit is contained in:
Acid Bong
2025-06-07 00:26:34 +03:00
committed by GitHub
parent ccc32e73fc
commit e406f552f8
7 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -1324,7 +1324,7 @@
"disabled": false,
"format": "via [$symbol($version )]($style)",
"style": "bold blue",
"symbol": "🪖 ",
"symbol": "🪖 ",
"version_format": "v${raw}"
},
"allOf": [
@@ -1399,7 +1399,7 @@
"Ultramarine": "🔷 ",
"Unknown": "❓ ",
"Uos": "🐲 ",
"Void": " ",
"Void": " ",
"Windows": "🪟 ",
"openEuler": "🦉 ",
"openSUSE": "🦎 "
@@ -5253,7 +5253,7 @@
"type": "string"
},
"symbol": {
"default": "🪖 ",
"default": "🪖 ",
"type": "string"
},
"style": {
@@ -5372,7 +5372,7 @@
"Ultramarine": "🔷 ",
"Unknown": "❓ ",
"Uos": "🐲 ",
"Void": " ",
"Void": " ",
"Windows": "🪟 ",
"openEuler": "🦉 ",
"openSUSE": "🦎 "
+1 -1
View File
@@ -3531,7 +3531,7 @@ Ubuntu = "🎯 "
Ultramarine = "🔷 "
Unknown = "❓ "
Uos = "🐲 "
Void = " "
Void = " "
Windows = "🪟 "
```
@@ -1,5 +1,5 @@
[aws]
symbol = " "
symbol = " "
[buf]
symbol = " "
+1 -1
View File
@@ -23,7 +23,7 @@ impl Default for OpaConfig<'_> {
OpaConfig {
format: "via [$symbol($version )]($style)",
version_format: "v${raw}",
symbol: "🪖 ",
symbol: "🪖 ",
style: "bold blue",
disabled: false,
detect_extensions: vec!["rego"],
+1 -1
View File
@@ -77,7 +77,7 @@ impl Default for OSConfig<'_> {
Type::Ultramarine => "🔷 ",
Type::Unknown => "",
Type::Uos => "🐲 ",
Type::Void => " ",
Type::Void => "",
Type::Windows => "🪟 ",
// Future symbols.
//aosc => " ",
+2 -2
View File
@@ -90,7 +90,7 @@ mod tests {
let dir = tempfile::tempdir()?;
File::create(dir.path().join("test.rego"))?.sync_all()?;
let actual = ModuleRenderer::new("opa").path(dir.path()).collect();
let expected = Some(format!("via {}", Color::Blue.bold().paint("🪖 v0.44.0 ")));
let expected = Some(format!("via {}", Color::Blue.bold().paint("🪖 v0.44.0 ")));
assert_eq!(expected, actual);
dir.close()
}
@@ -103,7 +103,7 @@ mod tests {
.path(dir.path())
.cmd("opa version", None)
.collect();
let expected = Some(format!("via {}", Color::Blue.bold().paint("🪖 ")));
let expected = Some(format!("via {}", Color::Blue.bold().paint("🪖 ")));
assert_eq!(expected, actual);
dir.close()
}
+1 -1
View File
@@ -375,7 +375,7 @@ mod tests {
Type::Ultramarine => "🔷 ",
Type::Unknown => "",
Type::Uos => "🐲 ",
Type::Void => " ",
Type::Void => "",
Type::Windows => "🪟 ",
_ => "",
};