chore: update project for consistency #2

Merged
louis9902 merged 3 commits from feature/consistency_between_packages into main 2026-05-16 10:32:07 +00:00
45 changed files with 70 additions and 49 deletions

View file

@ -5,7 +5,7 @@ indent_style = tab
indent_size = 4 indent_size = 4
tab_width = 4 tab_width = 4
end_of_line = lf end_of_line = lf
insert_final_newline = false insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
max_line_length = 120 max_line_length = 120

View file

@ -13,4 +13,5 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="System.CommandLine" PrivateAssets="compile" /> <PackageReference Include="System.CommandLine" PrivateAssets="compile" />
</ItemGroup> </ItemGroup>
</Project>
</Project>

View file

@ -22,4 +22,4 @@ internal sealed class Output : IDisposable
Stderr.Dispose(); Stderr.Dispose();
Stdin.Dispose(); Stdin.Dispose();
} }
} }

View file

@ -23,4 +23,4 @@ internal static class OutputTargetExtensions
yield return output.Stderr; yield return output.Stderr;
} }
} }
} }

View file

@ -49,4 +49,4 @@ public static class Program
cts.Cancel(); cts.Cancel();
} }
} }
} }

View file

@ -28,4 +28,4 @@ internal sealed class EchoCommand : Command
return 0; return 0;
} }
} }

View file

@ -43,4 +43,4 @@ internal sealed class EchoStdinCommand : Command
return 0; return 0;
} }
} }

View file

@ -31,4 +31,4 @@ internal sealed class EnvironmentCommand : Command
return 0; return 0;
} }
} }

View file

@ -20,4 +20,4 @@ internal sealed class ExitCommand : Command
await output.Stderr.WriteLineAsync($"Exit code set to {code}"); await output.Stderr.WriteLineAsync($"Exit code set to {code}");
return code; return code;
} }
} }

View file

@ -43,4 +43,4 @@ internal sealed class GenerateBlobCommand : Command
return 0; return 0;
} }
} }

View file

@ -44,4 +44,4 @@ internal sealed class GenerateClobCommand : Command
return 0; return 0;
} }
} }

View file

@ -42,4 +42,4 @@ internal sealed class LengthCommand : Command
return 0; return 0;
} }
} }

View file

@ -34,4 +34,4 @@ internal sealed class SleepCommand : Command
await output.Stdout.FlushAsync(CancellationToken.None); await output.Stdout.FlushAsync(CancellationToken.None);
return 0; return 0;
} }
} }

View file

@ -24,4 +24,4 @@ internal sealed class WorkingDirectoryCommand : Command
return 0; return 0;
} }
} }

View file

@ -178,4 +178,4 @@ internal sealed class CancellationTests
await Assert.That(stdout.ToString()).Contains("Done."); await Assert.That(stdout.ToString()).Contains("Done.");
} }
} }
} }

View file

@ -270,4 +270,4 @@ internal sealed class CommandTests
await Assert.That(cmd.StandardErrorPipe).IsNotEqualTo(pipeTarget); await Assert.That(cmd.StandardErrorPipe).IsNotEqualTo(pipeTarget);
} }
} }
} }

View file

@ -136,4 +136,4 @@ internal sealed class ExecuteTests
await Assert.That(lines).Contains("keep"); await Assert.That(lines).Contains("keep");
await Assert.That(lines).Contains("overwritten"); await Assert.That(lines).Contains("overwritten");
} }
} }

View file

@ -78,4 +78,4 @@ internal sealed class LineBreakTests
// Assert // Assert
await Assert.That(stdOutLines).IsEquivalentTo(["Foo", "", "Bar", "", "Baz"]); await Assert.That(stdOutLines).IsEquivalentTo(["Foo", "", "Bar", "", "Baz"]);
} }
} }

View file

@ -47,4 +47,4 @@ internal sealed class PathResolutionTests
await Assert.That(result.StandardOutput.Trim()).IsEqualTo("hi"); await Assert.That(result.StandardOutput.Trim()).IsEqualTo("hi");
} }
} }
} }

View file

@ -533,4 +533,4 @@ internal sealed class PipingTests
await Assert.That(stream3.ToArray()).IsEquivalentTo(stream4.ToArray()); await Assert.That(stream3.ToArray()).IsEquivalentTo(stream4.ToArray());
} }
} }
} }

Some files were not shown because too many files have changed in this diff Show more