dotnet-websharper / dotnet-ws

The `dotnet ws` tool
Apache License 2.0
1 stars 3 forks source link

Report if version to be stopped is not running #13

Closed granicz closed 1 year ago

granicz commented 3 years ago

Given the following command:

dotnet ws stop -v 5.0.0.8234234 -f

The tool silently does nothing, but it should report that the version given is not running.

granicz commented 1 year ago

I am getting multiple messages (seems to be as many as running instances) instead of just one:

C:\MyApp01>dotnet ws list
The following wsfscservice versions are running:

  version: 7.0.0.310; path: C:\Users\Adam\.nuget\packages\websharper.fsharp\7.0.0.310-beta2\tools\net6.0\win-x64\wsfscservice.exe
  version: 7.0.0.314; path: C:\Users\Adam\.nuget\packages\websharper.fsharp\7.0.0.314-beta2\tools\net6.0\win-x64\wsfscservice.exe
  version: 7.0.0.318; path: C:\Users\Adam\.nuget\packages\websharper.fsharp\7.0.0.318-beta2\tools\net6.0\win-x64\wsfscservice.exe.

C:\MyApp01>dotnet ws stop --version 7.0.0.120-beta1
Could not find running service with version: 7.0.0.120-beta1
Could not find running service with version: 7.0.0.120-beta1
Could not find running service with version: 7.0.0.120-beta1