vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[BUG]: global option

Open fangzhengjin opened this issue 1 year ago • 4 comments

Version The version you are currently using OS macOS

Describe the bug

vfox use java@21 --global 

执行后没有报错,只是当前会话生效 必须使用下面这个才可以

vfox use --global java@21 

Screenshots[optional] If applicable, add screenshots to help explain your problem.

fangzhengjin avatar Mar 08 '24 03:03 fangzhengjin

感谢反馈!

vfox使用的是urfave/cli库, 这个是库的问题. 只能命令后面紧接着跟flag才能生效.

aooohan avatar Mar 08 '24 04:03 aooohan

urfave/cli support this feature on v3.0

https://github.com/urfave/cli/pull/1568

just add a property to the flag to make it work

CleanShot 2024-03-08 at 13 49 31@2x

bytemain avatar Mar 08 '24 05:03 bytemain

urfave/cli support this feature on v3.0

urfave/cli#1568

just add a property to the flag to make it work

Wow, I'll fix this later. 👍

aooohan avatar Mar 08 '24 05:03 aooohan

Oh damn, we are currently using v2, and it seems like a lot of things need to be changed when upgrading to v3, which is still alpha.

So I suggest that we wait until v3 is released before fixing this issue.

aooohan avatar Mar 08 '24 05:03 aooohan