vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[Feature]: To clear the environment variables

Open yanecc opened this issue 1 year ago • 7 comments
trafficstars

1. Your usage scenarios?

Clear one or all plugin paths introduced by vfox from the $Path environment variable.

2. What is your expected outcome?

vfox disable zig
vfox disable -a/--all

yanecc avatar Apr 23 '24 08:04 yanecc

vfox disable zig
vfox disable -a/--all

I think vfox unuse command is better.

vfox unuse zig@version
vfox unuse zig
vfox unuse --all

aooohan avatar Apr 23 '24 08:04 aooohan

vfox disable zig
vfox disable -a/--all

I think vfox unuse command is better.

vfox unuse zig@version
vfox unuse zig
vfox unuse --all

Well, it's easy to understand, but there is no such a verb😂

yanecc avatar Apr 23 '24 09:04 yanecc

Well, it's easy to understand, but there is no such a verb😂

Indeed 😂, But disable is not very appropriate. It can be easily understood as disabling plugins.

If we must use a verb, let's just use clear to clear the environment variables of the specified runtime.

vfox clear zig@version
vfox clear zig
vfox clear --all

WDYT?

aooohan avatar Apr 23 '24 09:04 aooohan

Well, it's easy to understand, but there is no such a verb😂

Indeed 😂, But disable is not very appropriate. It can be easily understood as disabling plugins.

If we must use a verb, let's just use clear to clear the environment variables of the specified runtime.

vfox clear zig@version
vfox clear zig
vfox clear --all

WDYT?

It's ok. What do you think @version should do to users? Maybe it should be ignored.

yanecc avatar Apr 23 '24 09:04 yanecc

I think the word free being quite fitting. @aooohan

vfox free zig
vfox free -a/--all

yanecc avatar Apr 23 '24 09:04 yanecc

What do you think @version should do to users? Maybe it should be ignored.

Indeed. Runtime name is enough.

I think the word free being quite fitting.

Hmm. From my view, clear is more intuitive.

By the way, we also need to support scopes, like use command.

vfox clear/free --porject zig 
vfox clear/free --global zig 
vfox clear/free --session zig # Default

+1 for clear ;)

aooohan avatar Apr 23 '24 10:04 aooohan