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

[BUG]: Misleading prompts when alias is used #220

Closed
yanecc opened this issue Apr 21, 2024 · 1 comment
Closed

[BUG]: Misleading prompts when alias is used #220

yanecc opened this issue Apr 21, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@yanecc
Copy link
Contributor

yanecc commented Apr 21, 2024

Describe the bug

当使用别名cry添加了crystal插件,安装某版本后会提示:

Install crystal@1.4.0 success!
Please use vfox use crystal@1.4.0 to use it.

提示的命令是错误的

> vfox use crystal@1.4.0
crystal@1.4.0 is not installed

应该使用vfox use cry@1.4.0

若安装已安装的版本

> vfox install cry@1.4.0
crystal@1.4.0 is already installed

提示也与别名不符,用户设置了别名,在使用过程中应显示别名

> vfox un cry@1.4.0
Uninstalled crystal@1.4.0 successfully!

卸载过程也应显示别名

当尝试卸载未安装的版本,错误会提示两遍(故意的么?)

vfox un crystal@1.5.0
crystal@1.5.0 is not installed...
crystal@1.5.0 is not installed
@yanecc yanecc added the bug Something isn't working label Apr 21, 2024
@aooohan
Copy link
Member

aooohan commented Apr 21, 2024

确实如你所说, 应该保持同一名称, 也就是最终插件目录plugins中的文件夹名称.

当尝试卸载未安装的版本,错误会提示两遍(故意的么?)

不是, 应该返回一条, 估计是错误没处理好, 有地方单独print了.

@aooohan aooohan added this to the 0.4.0 milestone Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants