| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package NVMPL::Shell::Cmd; |
|
2
|
2
|
|
|
2
|
|
4244
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
99
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
111
|
|
|
4
|
2
|
|
|
2
|
|
14
|
use feature 'say'; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
345
|
|
|
5
|
2
|
|
|
2
|
|
16
|
use NVMPL::Utils qw(log_info); |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
398
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub update_path { |
|
8
|
1
|
|
|
1
|
0
|
1545
|
my ($bin_path) = @_; |
|
9
|
1
|
|
|
|
|
48
|
say "set PATH=$bin_path;%PATH%"; |
|
10
|
|
|
|
|
|
|
} |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init_snippet { |
|
13
|
1
|
|
|
1
|
0
|
4221
|
return <<'CMD'; |
|
14
|
|
|
|
|
|
|
:: nvm-pl cmd.exe integration |
|
15
|
|
|
|
|
|
|
if exists "%USERPROFILE%\.nvm-pl\install\versions\current\bin" ( |
|
16
|
|
|
|
|
|
|
set PATH=%USERPROFILE%\.nvm-pl\install\versions\current\bin;%PATH% |
|
17
|
|
|
|
|
|
|
) |
|
18
|
|
|
|
|
|
|
CMD |
|
19
|
|
|
|
|
|
|
} |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |