fix(buf): fix spacing & harmonize docs with actual configuration (#4450)

* fix(buf): add whitespace after version string

* fix: update config schema

* fix: config version and bison emoji

* fix: update documentation format

* fix: dprint

* fix: config schema
This commit is contained in:
wilhelm
2022-10-08 07:07:30 +11:00
committed by GitHub
parent 84bbe3dd03
commit 3d452367bd
4 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -21,9 +21,9 @@ pub struct BufConfig<'a> {
impl<'a> Default for BufConfig<'a> {
fn default() -> Self {
BufConfig {
format: "with [$symbol ($version)]($style)",
format: "with [$symbol($version )]($style)",
version_format: "v${raw}",
symbol: "",
symbol: "🦬 ",
style: "bold blue",
disabled: false,
detect_extensions: vec![],
+1 -1
View File
@@ -103,7 +103,7 @@ 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();
}