docs: use TOML for Conjure configuration
This commit is contained in:
+2
-2
@@ -181,11 +181,11 @@ esac
|
||||
if err := os.WriteFile(zed, []byte(`{"name":"old","themes":[{"name":"old"}]}`), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
conjureConfig := filepath.Join(tmp, "xdg", "conjure", "config.json")
|
||||
conjureConfig := filepath.Join(tmp, "xdg", "conjure", "config.toml")
|
||||
if err := os.MkdirAll(filepath.Dir(conjureConfig), 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
const userConfig = `{"theme":"tint","colors":{"accent":"#abcdef"}}`
|
||||
const userConfig = "theme = \"tint\"\n\n[colors]\naccent = \"#abcdef\"\n"
|
||||
if err := os.WriteFile(conjureConfig, []byte(userConfig), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user