diff --git a/README.md b/README.md index 8669753..5545ad8 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,12 @@ Sbackup all Sbackup save ``` +#### 查看版本信息 + +```powershell +Sbackup version +``` + ## 实现原理 Sbackup根据文件夹的最后修改日期决定是否备份. @@ -75,5 +81,3 @@ Sbackup根据文件夹的最后修改日期决定是否备份. ## 加入我们? 请发送邮件到:xiatianxuan2025@163.com - - diff --git a/sbackup/__init__.py b/sbackup/__init__.py index 15981b8..34ca299 100644 --- a/sbackup/__init__.py +++ b/sbackup/__init__.py @@ -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: