Skip to content

Commit

Permalink
Update NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Jan 15, 2024
1 parent 82adfb7 commit ebdc370
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 40 deletions.
2 changes: 1 addition & 1 deletion CliWrap.Benchmarks/CliWrap.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.27.0" PrivateAssets="all" />
<PackageReference Include="ProcessX" Version="1.5.5" />
<PackageReference Include="RunProcessAsTask" Version="1.2.4" />
<PackageReference Include="MedallionShell" Version="1.6.2" />
Expand Down
2 changes: 1 addition & 1 deletion CliWrap.Signaler/CliWrap.Signaler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.27.0" PrivateAssets="all" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion CliWrap.Tests.Dummy/CliWrap.Tests.Dummy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="CliFx" Version="2.3.5" />
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.27.0" PrivateAssets="all" />
<PackageReference Include="PolyShim" Version="1.10.0" PrivateAssets="all" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions CliWrap.Tests/CliWrap.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.27.0" PrivateAssets="all" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3" PrivateAssets="all" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="PolyShim" Version="1.10.0" PrivateAssets="all" />
<PackageReference Include="System.Reactive" Version="6.0.0" />
<PackageReference Include="xunit" Version="2.6.5" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" PrivateAssets="all" />
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
</ItemGroup>
Expand Down
32 changes: 13 additions & 19 deletions CliWrap.Tests/ConfigurationSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ public void I_can_configure_the_command_line_arguments_using_a_builder()
var original = Cli.Wrap("foo").WithArguments("xxx");

// Act
var modified = original.WithArguments(
b =>
b.Add("-a")
.Add("foo bar")
.Add("\"foo\\\\bar\"")
.Add(3.14)
.Add(["foo", "bar"])
.Add([-5, 89.13])
var modified = original.WithArguments(b =>
b.Add("-a")
.Add("foo bar")
.Add("\"foo\\\\bar\"")
.Add(3.14)
.Add(["foo", "bar"])
.Add([-5, 89.13])
);

// Assert
Expand Down Expand Up @@ -136,12 +135,8 @@ public void I_can_configure_the_user_credentials_using_a_builder()
var original = Cli.Wrap("foo").WithCredentials(new Credentials("xxx", "xxx", "xxx"));

// Act
var modified = original.WithCredentials(
c =>
c.SetDomain("domain")
.SetUserName("username")
.SetPassword("password")
.LoadUserProfile()
var modified = original.WithCredentials(c =>
c.SetDomain("domain").SetUserName("username").SetPassword("password").LoadUserProfile()
);

// Assert
Expand Down Expand Up @@ -180,11 +175,10 @@ public void I_can_configure_the_environment_variables_using_a_builder()
var original = Cli.Wrap("foo").WithEnvironmentVariables(e => e.Set("xxx", "xxx"));

// Act
var modified = original.WithEnvironmentVariables(
b =>
b.Set("name", "value")
.Set("key", "door")
.Set(new Dictionary<string, string?> { ["zzz"] = "yyy", ["aaa"] = "bbb" })
var modified = original.WithEnvironmentVariables(b =>
b.Set("name", "value")
.Set("key", "door")
.Set(new Dictionary<string, string?> { ["zzz"] = "yyy", ["aaa"] = "bbb" })
);

// Assert
Expand Down
15 changes: 7 additions & 8 deletions CliWrap.Tests/CredentialsSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public async Task I_can_execute_a_command_as_a_different_user()

// Arrange
var cmd = Cli.Wrap(Dummy.Program.FilePath)
.WithCredentials(
c => c.SetUserName("user123").SetPassword("pass123").LoadUserProfile()
.WithCredentials(c =>
c.SetUserName("user123").SetPassword("pass123").LoadUserProfile()
);

// Act & assert
Expand All @@ -42,12 +42,11 @@ public async Task I_can_execute_a_command_as_a_different_user_under_the_specifie

// Arrange
var cmd = Cli.Wrap(Dummy.Program.FilePath)
.WithCredentials(
c =>
c.SetDomain("domain123")
.SetUserName("user123")
.SetPassword("pass123")
.LoadUserProfile()
.WithCredentials(c =>
c.SetDomain("domain123")
.SetUserName("user123")
.SetPassword("pass123")
.LoadUserProfile()
);

// Act & assert
Expand Down
4 changes: 2 additions & 2 deletions CliWrap.Tests/EnvironmentSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public async Task I_can_execute_a_command_with_some_environment_variables_overwr
{
var cmd = Cli.Wrap(Dummy.Program.FilePath)
.WithArguments(["env", variableToKeep, variableToOverwrite, variableToUnset])
.WithEnvironmentVariables(
e => e.Set(variableToOverwrite, "overwritten").Set(variableToUnset, null)
.WithEnvironmentVariables(e =>
e.Set(variableToOverwrite, "overwritten").Set(variableToUnset, null)
);

// Act
Expand Down
7 changes: 3 additions & 4 deletions CliWrap.Tests/PipingSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ public async Task I_can_execute_a_command_and_pipe_the_stdout_into_a_sync_anonym
// Arrange
using var stream = new MemoryStream();

var target = PipeTarget.Create(
origin =>
// ReSharper disable once AccessToDisposedClosure
origin.CopyTo(stream)
var target = PipeTarget.Create(origin =>
// ReSharper disable once AccessToDisposedClosure
origin.CopyTo(stream)
);

var cmd =
Expand Down
2 changes: 1 addition & 1 deletion CliWrap/CliWrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
<PackageReference Include="CSharpier.MsBuild" Version="0.27.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="PolyShim" Version="1.10.0" PrivateAssets="all" />
Expand Down
4 changes: 3 additions & 1 deletion CliWrap/Command.Execution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ await StandardErrorPipe
Command:
{TargetFilePath} {Arguments}

You can suppress this validation by calling `{nameof(WithValidation)}({nameof(CommandResultValidation)}.{nameof(CommandResultValidation.None)})` on the command.
You can suppress this validation by calling `{nameof(WithValidation)}({nameof(
CommandResultValidation
)}.{nameof(CommandResultValidation.None)})` on the command.
"""
);
}
Expand Down

0 comments on commit ebdc370

Please sign in to comment.