fix(instructions): refresh startup rule when custom instructions change
This commit is contained in:
1 parent
83091d247a
commit
b1170604eb
4 files changed
+166
No files matched your search
@@ -7,6 +7,8 @@ import stat
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
from personal_instructions import refresh
|
||||
|
||||
|
||||
def remove_instruction(path: Path, instruction: str) -> bool:
|
||||
if not path.exists():
|
||||
@@ -75,6 +77,7 @@ def main() -> int:
|
||||
print(f'Instruction removed for {target}.')
|
||||
else:
|
||||
print(f'Instruction not found for {target}.')
|
||||
refresh(home, target)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user