Skip to content

Commit 4cc9530

Browse files
committed
enforce code style with Boolean
1 parent c131a75 commit 4cc9530

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Commands.Win32.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ internal static Command PathCommand {
5353
Description = "Path Command"
5454
};
5555
commandArgument.CompletionSources.Add(_ => [
56-
new ("register"),
57-
new ("unregister")]);
56+
new("register"),
57+
new("unregister")]);
5858
commandArgument.Validators.Add(result => {
5959
String[] commands = ["register", "unregister"];
6060
String command = result.GetValueOrDefault<String>();

Commands.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace RagePhoto.Cli;
66
internal static partial class Commands {
77

88
internal static Int32 CreateFunction(String format, String? imageFile, String? description,
9-
String? json, String? title, String? outputFile, bool imageAsIs) {
9+
String? json, String? title, String? outputFile, Boolean imageAsIs) {
1010
try {
1111
using Photo photo = new();
1212

@@ -159,7 +159,7 @@ internal static Int32 GetFunction(String inputFile, String dataType, String outp
159159
}
160160

161161
internal static Int32 SetFunction(String inputFile, String? format, String? imageFile, String? description,
162-
String? json, String? title, bool updateJson, String? outputFile, bool imageAsIs) {
162+
String? json, String? title, Boolean updateJson, String? outputFile, Boolean imageAsIs) {
163163
try {
164164
if (format == null && imageFile == null && description == null
165165
&& json == null && title == null && !updateJson) {
@@ -273,7 +273,7 @@ internal static Command CreateCommand {
273273
Option<String?> outputOption = new("--output", "-o") {
274274
Description = "Output File"
275275
};
276-
Option<bool> imageAsIsOption = new("--image-as-is") {
276+
Option<Boolean> imageAsIsOption = new("--image-as-is") {
277277
Description = "Force image being set as-is"
278278
};
279279
Command createCommand = new("create", "Create a new Photo") {
@@ -362,13 +362,13 @@ internal static Command SetCommand {
362362
Option<String?> titleOption = new("--title", "-t") {
363363
Description = "Title"
364364
};
365-
Option<bool> updateJsonOption = new("--update-json", "-u") {
365+
Option<Boolean> updateJsonOption = new("--update-json", "-u") {
366366
Description = "Update JSON"
367367
};
368368
Option<String?> outputOption = new("--output", "-o") {
369369
Description = "Output File"
370370
};
371-
Option<bool> imageAsIsOption = new("--image-as-is") {
371+
Option<Boolean> imageAsIsOption = new("--image-as-is") {
372372
Description = "Force image being set as-is"
373373
};
374374
Command setCommand = new("set", "Set Data from a Photo") {

Jpeg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal static Byte[] GetEmptyJpeg(PhotoFormat format, out Size size) {
2929
return jpegStream.ToArray();
3030
}
3131

32-
internal static Byte[] GetJpeg(Stream input, bool imageAsIs, out Size size) {
32+
internal static Byte[] GetJpeg(Stream input, Boolean imageAsIs, out Size size) {
3333
try {
3434
if (imageAsIs) {
3535
using MemoryStream jpegStream = new();

0 commit comments

Comments
 (0)