fix export command to clear space state
This commit is contained in:
2
run.py
2
run.py
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user