mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-20 05:27:31 -07:00
fix(toml): remove unsupported schema definition
This commit is contained in:
parent
f13eae852b
commit
39b7615aac
|
@ -56,7 +56,6 @@ func (cfg *Config) Export(format string) string {
|
||||||
data := strings.Replace(result.String(), "{", prefix, 1)
|
data := strings.Replace(result.String(), "{", prefix, 1)
|
||||||
return escapeGlyphs(data, cfg.MigrateGlyphs)
|
return escapeGlyphs(data, cfg.MigrateGlyphs)
|
||||||
case TOML:
|
case TOML:
|
||||||
prefix := "#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json\n\n"
|
|
||||||
tomlEncoder := toml.NewEncoder(&result)
|
tomlEncoder := toml.NewEncoder(&result)
|
||||||
tomlEncoder.SetIndentTables(true)
|
tomlEncoder.SetIndentTables(true)
|
||||||
|
|
||||||
|
@ -65,7 +64,7 @@ func (cfg *Config) Export(format string) string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
return prefix + result.String()
|
return result.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
// unsupported format
|
// unsupported format
|
||||||
|
|
Loading…
Reference in a new issue