mirror of
https://github.com/CodeSeeed/sbackup.git
synced 2026-10-02 18:32:58 +08:00
doc: 提示语升级
This commit is contained in:
1 parent
007229badd
commit
2d528ac3da
2 files changed
+16
-6
No files matched your search
@@ -52,6 +52,12 @@ Sbackup all
|
||||
Sbackup save
|
||||
```
|
||||
|
||||
#### 查看版本信息
|
||||
|
||||
```powershell
|
||||
Sbackup version
|
||||
```
|
||||
|
||||
## 实现原理
|
||||
|
||||
Sbackup根据文件夹的最后修改日期决定是否备份.
|
||||
@@ -75,5 +81,3 @@ Sbackup根据文件夹的最后修改日期决定是否备份.
|
||||
## 加入我们?
|
||||
|
||||
请发送邮件到:xiatianxuan2025@163.com
|
||||
|
||||
|
||||
+10
-4
@@ -1,15 +1,21 @@
|
||||
from .auto_save import add_folder, rm_folder, save_folder, all_folder
|
||||
import sys
|
||||
|
||||
VERSION = "0.0.1"
|
||||
VERSION = "1.0.0"
|
||||
version_string = f"""
|
||||
Sbackup v{VERSION} — Copyright © 2026 xiatianxuan
|
||||
Licensed under GNU GPL v3.0 — https://www.gnu.org/licenses/gpl-3.0.html
|
||||
"""
|
||||
help_string = f"""
|
||||
version: {VERSION}
|
||||
Sbackup v{VERSION} — Copyright © 2026 xiatianxuan
|
||||
Licensed under GNU GPL v3.0 — https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
为你的文件夹保驾护航.
|
||||
|
||||
add 添加备份策略.
|
||||
rm, remove 删除备份策略.
|
||||
all 查看所有备份策略.
|
||||
save 备份所有文件夹.
|
||||
version 查看版本信息.
|
||||
"""
|
||||
|
||||
def run():
|
||||
@@ -30,7 +36,7 @@ def run():
|
||||
elif command == "save":
|
||||
save_folder()
|
||||
elif command == "version":
|
||||
print(f"version: {VERSION}.")
|
||||
print(version_string)
|
||||
elif command == "help":
|
||||
print(help_string)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user