mirror of
https://github.com/CodeSeeed/sbackup.git
synced 2026-10-02 18:32:58 +08:00
feat: 添加进度条,完善文档和提示语,国际化
This commit is contained in:
1 parent
4c9896e034
commit
e433838b43
14 files changed
+892
-449
No files matched your search
@@ -1,12 +1,15 @@
|
||||
from sbackup import run
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
run()
|
||||
except KeyboardInterrupt:
|
||||
print("\nExit.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
from sbackup import run
|
||||
from sbackup.i18n import t
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""主函数入口"""
|
||||
try:
|
||||
run()
|
||||
except KeyboardInterrupt:
|
||||
print(t("exit.message"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in new issue
Block a user