Simplify CliWrap usage (#253)

This commit is contained in:
Alexey Golub 2020-10-14 10:11:51 +03:00 committed by GitHub
commit a7c9c0636e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ namespace Greenshot.Addon.ExternalCommand
var output = await Cli.Wrap(_externalCommandDefinition.Command) var output = await Cli.Wrap(_externalCommandDefinition.Command)
.WithArguments(string.Format(_externalCommandDefinition.Arguments, fullPath)) .WithArguments(string.Format(_externalCommandDefinition.Arguments, fullPath))
.ExecuteBufferedAsync().Task.ConfigureAwait(false); .ExecuteBufferedAsync().ConfigureAwait(false);
if (_externalCommandDefinition.CommandBehavior.HasFlag(CommandBehaviors.ParseOutputForUris)) if (_externalCommandDefinition.CommandBehavior.HasFlag(CommandBehaviors.ParseOutputForUris))
{ {

View file

@ -19,6 +19,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CliWrap" Version="3.1.0" /> <PackageReference Include="CliWrap" Version="3.2.1" />
</ItemGroup> </ItemGroup>
</Project> </Project>