fix export command to clear space state

This commit is contained in:
2026-05-06 02:53:30 +09:00
parent b15648a17c
commit b3cd28471e

2
run.py
View File

@@ -273,6 +273,7 @@ class StateManager:
result = func(self, *args, **kwargs)
self.save()
return result
return wrapper
def check_space(self, lang: Language) -> bool:
@@ -771,6 +772,7 @@ def export(from_: tuple[str, ...], all_: bool, force: bool):
StorageManager().save_file(
s_loc, from_language, s_file, content, s_is_completed
)
StateManager().clear_space(from_language)
click.secho(
f"Exported '{s_file}.{from_language.value}' to location '{s_loc}'",
fg="cyan",