Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全新的版本,详细见下面说明 #42

Merged
merged 53 commits into from
Apr 3, 2022
Merged

全新的版本,详细见下面说明 #42

merged 53 commits into from
Apr 3, 2022

Conversation

likun7981
Copy link
Owner

@likun7981 likun7981 commented Jan 5, 2022

移除

  • 移除了 hlink -d,使用全新的 hlink rm 进行替代, 详情见hlink rm --help
  • 移除了 hlink --maxFindLevel 现在无层级限制了

新增

  • 新增了 hlink rm 来进行硬链的删除,详情见hlink rm --help
  • 新增了 hlink backup /path/to/backup_pathhlink restore /path/to/restore_path 用于备份和恢复 ~/.hlink 目录
  • 新增监听模式 hlink rm -wa /path/to/dir 解决了硬链删除时,自动删除源文件的诉求,当然你如果需要保存源文件做种,也可以使用hlink rm -w /path/to/dir 这样就只会删除相关硬链,不会删除源文件;该模式 如果路径变了就无法使用了,大家先将就用吧

!! 说明:删除命令建议大家先不使用,大家先手动删吧,目前还不完善

优化

  • 使用命令行的源路径和目标路径可以使用相对路径了,相对于你命令执行的目录,但是配置文件还是必须写绝对路径哦
  • 优化了日志输出,现在的日志输出更人性化,有 预期的大概时间及进度百分比

  • 优化了硬链速度,提升100倍 实际测试2万+文件大概1分钟左右
  • 优化了错误提示,现在常用的错误提示,会直接提醒你解决方案

不兼容更新

  • 新的版本你的nodejs必须在 Node.js 12.20 或者 Node.js 14.14及以上
  • 新版本对配置文件进行了改造,请移除原有的配置文件,使用 hlink -g 重新生成配置文件,或者你可以按下面步骤对源配置文件进行更改
    第一步:将hlink.config.js 重命名为 hlink.config.mjs
    第二步:
// hlink.config.mjs 第二行

// 移除
- module.exports = {

// 新增
+ export default {
  • 缓存文件进行了新的结构处理,所以之前的缓存记录会不生效

待完成

  • 缓存编辑功能

体验

npm i -g hlink@next

@vercel
Copy link

vercel bot commented Jan 5, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/likun7981/hlink/C91RvsAkscuv6KP2YxheLgs35QBn
✅ Preview: https://hlink-git-feat-watch-likun7981.vercel.app

@likun7981 likun7981 changed the title 全新的版本有以下功能 优化 全新的版本,详细见下面说明 Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant