mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00
refactor: Rename restore feature function for clarity
- Renamed `add_restore_feature()` to `restore_feature()` - Simplified function name while maintaining existing functionality - Improved code readability and consistency
This commit is contained in:
parent
8a3ff84f08
commit
2cc9adf8b8
@ -537,7 +537,7 @@ modify_mac_address() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 新增恢复功能选项
|
# 新增恢复功能选项
|
||||||
add_restore_feature() {
|
restore_feature() {
|
||||||
local backup_files=("$BACKUP_DIR"/*.backup_*)
|
local backup_files=("$BACKUP_DIR"/*.backup_*)
|
||||||
|
|
||||||
# 检查是否存在备份文件
|
# 检查是否存在备份文件
|
||||||
@ -643,7 +643,7 @@ main() {
|
|||||||
log_info "请重启 Cursor 以应用新的配置"
|
log_info "请重启 Cursor 以应用新的配置"
|
||||||
|
|
||||||
# 新增恢复功能选项
|
# 新增恢复功能选项
|
||||||
add_restore_feature
|
restore_feature
|
||||||
|
|
||||||
# 显示最后的提示信息
|
# 显示最后的提示信息
|
||||||
show_follow_info
|
show_follow_info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user