File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 37
37
38
38
JSON_PLUGIN_COMMON_TEMPLATE = """\
39
39
"plugins": {
40
- "~ record_message": {},
40
+ ". record_message": {},
41
41
"::echo": {},
42
42
"::inspect": {}
43
43
}
49
49
"$prelude": [
50
50
"::auto_reload"
51
51
],
52
- "~record_message": {},
52
+ ".record_message": {
53
+ "record_send": true,
54
+ },
55
+ "::help": {},
53
56
"::echo": {},
54
57
"::inspect": {},
55
58
"::auto_reload": {
83
86
plugins:
84
87
$prelude:
85
88
- ::auto_reload
86
- .record_message: {}
89
+ .record_message:
90
+ record_send: true
87
91
::echo: {}
92
+ ::help: {}
88
93
::inspect: {}
89
94
::auto_reload:
90
95
watch_config: true
Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ def reload(self):
51
51
@classmethod
52
52
def load (cls , path : str | os .PathLike [str ] | None = None ) -> EntariConfig :
53
53
if path is None :
54
- try :
55
- import yaml
56
-
57
- _path = Path .cwd () / "entari.yml"
58
- except ImportError :
54
+ if "ENTARI_CONFIG_FILE" in os .environ :
55
+ _path = Path (os .environ ["ENTARI_CONFIG_FILE" ])
56
+ elif (Path .cwd () / ".entari.json" ).exists ():
59
57
_path = Path .cwd () / ".entari.json"
58
+ else :
59
+ _path = Path .cwd () / "entari.yml"
60
60
else :
61
61
_path = Path (path )
62
62
if not _path .exists ():
You can’t perform that action at this time.
0 commit comments