File tree Expand file tree Collapse file tree
packages/cli/snap-tests-global/command-env-use-shells Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,21 +113,6 @@ pub struct EnvConfig {
113113 /// Env: `HOME` (Unix) / `USERPROFILE` (Windows)
114114 pub user_home : Option < PathBuf > ,
115115
116- /// Fish shell version (indicates running under fish).
117- ///
118- /// Env: `FISH_VERSION`
119- pub fish_version : Option < String > ,
120-
121- /// `PowerShell` module path (indicates running under `PowerShell` on Windows).
122- ///
123- /// Env: `PSModulePath`
124- pub ps_module_path : Option < String > ,
125-
126- /// Nu shell version (indicates running under Nu shell).
127- ///
128- /// Env: `NU_VERSION`
129- pub nu_version : Option < String > ,
130-
131116 /// Explicitly specify the current shell.
132117 ///
133118 /// Env: `VP_SHELL`
@@ -159,9 +144,6 @@ impl EnvConfig {
159144 . or_else ( |_| std:: env:: var ( "USERPROFILE" ) )
160145 . ok ( )
161146 . map ( PathBuf :: from) ,
162- fish_version : std:: env:: var ( "FISH_VERSION" ) . ok ( ) ,
163- ps_module_path : std:: env:: var ( "PSModulePath" ) . ok ( ) ,
164- nu_version : std:: env:: var ( "NU_VERSION" ) . ok ( ) ,
165147 vp_shell : std:: env:: var ( env_vars:: VP_SHELL ) . ok ( ) ,
166148 }
167149 }
@@ -245,9 +227,6 @@ impl EnvConfig {
245227 update_task_types : None ,
246228 node_version : None ,
247229 user_home : None ,
248- fish_version : None ,
249- ps_module_path : None ,
250- nu_version : None ,
251230 vp_shell : None ,
252231 }
253232 }
Original file line number Diff line number Diff line change @@ -33,7 +33,3 @@ Using Node.js v<semver> (resolved from <semver>)
3333> VP_SHELL=POWERSHELL vp env use 20.18.0 --no-install # should detect case-insensitive powershell
3434$env:VP_NODE_VERSION = "20.18.0"
3535Using Node.js v<semver> (resolved from <semver>)
36-
37- > VP_SHELL=invalid vp env use 20.18.0 --no-install # should fallback to platform default
38- export VP_NODE_VERSION=20.18.0
39- Using Node.js v<semver> (resolved from <semver>)
Original file line number Diff line number Diff line change 1212 " VP_SHELL=cmd vp env use 20.18.0 --no-install # should detect cmd and output cmd export" ,
1313 " VP_SHELL=BASH vp env use 20.18.0 --no-install # should detect case-insensitive bash" ,
1414 " VP_SHELL=FISH vp env use 20.18.0 --no-install # should detect case-insensitive fish" ,
15- " VP_SHELL=POWERSHELL vp env use 20.18.0 --no-install # should detect case-insensitive powershell" ,
16- " VP_SHELL=invalid vp env use 20.18.0 --no-install # should fallback to platform default"
15+ " VP_SHELL=POWERSHELL vp env use 20.18.0 --no-install # should detect case-insensitive powershell"
1716 ]
1817}
You can’t perform that action at this time.
0 commit comments