Skip to content

Commit 258d179

Browse files
committed
chore: global cleanup
- update format - improve readme
1 parent b801ed3 commit 258d179

7 files changed

Lines changed: 17 additions & 13 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ The main class for building print operations using a fluent interface.
158158
#### Core Methods
159159

160160
| Method | Description |
161-
| -------------------------------------------- | ----------------------------------- |
161+
|----------------------------------------------|-------------------------------------|
162162
| `AddText(string, Action<TextOptions>)` | Add text with configuration options |
163163
| `AddText(string)` | Add simple text |
164164
| `AddSeparator(char)` | Add a separator line |
@@ -202,11 +202,11 @@ Configuration class for printer settings.
202202
```csharp
203203
public class PrinterOptions
204204
{
205-
public int MaxLineCharacter { get; set; } // Characters per line
206-
public string PortName { get; set; } // COM port (e.g., "COM1")
207-
public int BaudRate { get; set; } = 9600; // Communication speed
208-
public bool OpenDrawer { get; set; } // Open cash drawer after printing
209-
public bool CutPaper { get; set; } // Cut paper after printing
205+
public int MaxLineCharacter { get; init; } // Characters per line
206+
public string PortName { get; init; } // COM port (e.g., "COM1")
207+
public int BaudRate { get; init; } = 9600; // Communication speed
208+
public bool OpenDrawer { get; init; } // Open cash drawer after printing
209+
public bool CutPaper { get; init; } // Cut paper after printing
210210
}
211211
```
212212

src/Sharprinter.Demo.Cli/Sharprinter.Demo.Cli.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Spectre.Console.Cli" Version="0.50.0" />
12+
<PackageReference Include="Spectre.Console.Cli" Version="0.50.0"/>
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<ProjectReference Include="..\Sharprinter\Sharprinter.csproj" />
16+
<ProjectReference Include="..\Sharprinter\Sharprinter.csproj"/>
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<None Include="Assets\**">
21-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
22-
</None>
20+
<None Include="Assets\**">
21+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
22+
</None>
2323
</ItemGroup>
2424

2525
</Project>

src/Sharprinter/Common/Border.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ReSharper disable once CheckNamespace
2+
23
namespace Sharprinter;
34

45
internal static class Border

src/Sharprinter/Enums/HorizontalAlignment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ReSharper disable once CheckNamespace
2+
23
namespace Sharprinter;
34

45
/// <summary>

src/Sharprinter/Enums/TextWrap.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ReSharper disable once CheckNamespace
2+
23
namespace Sharprinter;
34

45
/// <summary>

src/Sharprinter/Enums/VerticalAlignment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ReSharper disable once CheckNamespace
2+
23
namespace Sharprinter;
34

45
/// <summary>

src/Sharprinter/Sharprinter.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LangVersion>latest</LangVersion>
77
<Nullable>enable</Nullable>
88
<Platforms>AnyCPU;x86;x64</Platforms>
9-
<TargetFramework>net9.0</TargetFramework>
9+
<TargetFramework>net9.0</TargetFramework>
1010
<Version>0.0.1</Version>
1111
</PropertyGroup>
1212

@@ -32,7 +32,7 @@
3232
<None Include="printer.sdk.dll" CopyToOutputDirectory="PreserveNewest" Pack="true" PackagePath="runtimes\win-x64\native\">
3333
<Link>printer.sdk.dll</Link>
3434
</None>
35-
35+
3636
<None Include="printer.sdk.dll" CopyToOutputDirectory="PreserveNewest" Pack="true" PackagePath="runtimes\win-x86\native\">
3737
<Link>printer.sdk.dll</Link>
3838
</None>

0 commit comments

Comments
 (0)