Compare commits

..

3 commits

Author SHA1 Message Date
a6f1140b1f
chore: update insert_final_newline setting
All checks were successful
default / dotnet-default-workflow (pull_request) Successful in 1m11s
default / dotnet-default-workflow (push) Successful in 1m10s
2026-05-16 12:30:04 +02:00
dc607c2653
chore: update package-readme.md 2026-05-16 12:25:55 +02:00
4309bc8668
chore: update csproj to have consistent settings 2026-05-16 12:25:55 +02:00
45 changed files with 70 additions and 49 deletions

View file

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

View file

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

View file

@ -13,7 +13,7 @@
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
<InternalsVisibleTo Include="Geekeey.Process.Tests" />
</ItemGroup>
<PropertyGroup>

View file

@ -1,9 +1,29 @@
Process is a library for interacting with external command-line interfaces. It provides a convenient model for launching
processes, redirecting input and output streams, awaiting completion, handling cancellation, and more.
## Usage
## Features
### Execute a command and capturing its output:
- **Input and Output redirection:** flexible piping model, that allows to redirect the process's streams.
- **Immutability:** The `Command` object is immutable, ensuring thread safely and allowing sharing of a base
configuration.
## Getting Started
### Install the NuGet package:
```shell
dotnet add package Geekeey.Request
```
You may need to add our NuGet feed to your nuget.config this can be done by running the following command:
```shell
dotnet nuget add source -n geekeey https://code.geekeey.de/api/packages/geekeey/nuget/index.json
```
### Usage
#### Execute a command and capturing its output:
```csharp
public static async Task<int> Main()
@ -16,7 +36,7 @@ public static async Task<int> Main()
}
```
### Execute a command and redirect its output to another command:
#### Execute a command and redirect its output to another command:
```csharp
public static Task<int> Main()
@ -27,7 +47,7 @@ public static Task<int> Main()
}
```
### Execute a command with cancellation support:
#### Execute a command with cancellation support:
```csharp
public static async Task<int> Main()