Enhancement originates from
With running the command `teams cache remove` on a Windows device, we force kill all the processes named `Teams.exe`.
|
switch (platform) { |
|
case 'win32': |
|
cmd = 'taskkill /IM "Teams.exe" /F'; |
|
break; |
Here, it would be nice to first fetch all available Teams pids and the close them relatively. If no pids are returned, we can skip the force close. This is how we currently do it for macOS.
Getting the available pids:
|
case 'darwin': |
|
cmd = `ps ax | grep MacOS/Teams -m 1 | grep -v grep | awk '{ print $1 }'`; |
|
break; |
Closing the relative pids, if any:
|
if (cmdOutput.stdout !== '' && platform === 'darwin') { |
|
process.kill(cmdOutput.stdout); |
|
} |
Enhancement originates from
teams cache removecommand. Closes #3205 #3224 (comment)With running the command `teams cache remove` on a Windows device, we force kill all the processes named `Teams.exe`.
cli-microsoft365/src/m365/teams/commands/cache/cache-remove.ts
Lines 80 to 83 in b580b06
Here, it would be nice to first fetch all available Teams pids and the close them relatively. If no pids are returned, we can skip the force close. This is how we currently do it for macOS.
Getting the available pids:
cli-microsoft365/src/m365/teams/commands/cache/cache-remove.ts
Lines 84 to 86 in b580b06
Closing the relative pids, if any:
cli-microsoft365/src/m365/teams/commands/cache/cache-remove.ts
Lines 96 to 98 in b580b06