Skip to content

Commit

Permalink
cli: Use internal sealed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 13, 2024
1 parent 4699bdc commit 7d8f442
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/Commands/AI/AiCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AutoSDK.CLI.Commands.AI;

public class AiCommand : Command
internal sealed class AiCommand : Command
{
public AiCommand() : base(name: "ai", description: "AI subcommands.")
{
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AutoSDK.CLI/Commands/AI/SpecFromDocsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace AutoSDK.CLI.Commands.AI;

public class SpecFromDocsCommand : Command
internal sealed class SpecFromDocsCommand : Command
{
public SpecFromDocsCommand() : base(name: "spec-from-docs", description: "Generates OpenAPI spec from SPA HTML docs.")
{
Expand Down Expand Up @@ -73,7 +73,7 @@ private static async Task HandleAsync(
}
}

public class OpenApiSpecResponse
internal sealed class OpenApiSpecResponse
{
public string YamlSpecFullBody { get; set; } = string.Empty;
}
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/Commands/ConvertCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace AutoSDK.CLI.Commands;

public class ConvertCommand : Command
internal sealed class ConvertCommand : Command
{
public ConvertCommand() : base(name: "convert-to-openapi30", description: "Converts OpenAPI 3.1 spec to OpenAPI 3.0.")
{
Expand Down
4 changes: 2 additions & 2 deletions src/libs/AutoSDK.CLI/Commands/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace AutoSDK.CLI.Commands;

public class GenerateCommand : Command
internal sealed class GenerateCommand : Command
{
public GenerateCommand() : base(name: "generate", description: "Generates client sdk using a OpenAPI spec.")
{
Expand Down Expand Up @@ -158,7 +158,7 @@ private static async Task HandleAsync(
Sources.AnyOf(x),
Sources.AnyOfJsonExtensions(x),
Sources.AnyOfJsonConverter(x),
Sources.AnyOfJsonConverterFactory(x),
//Sources.AnyOfJsonConverterFactory(x),
Sources.AnyOfValidation(x),
}))
.Concat([Sources.JsonSerializerContext(data.Converters, data.Types)])
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/Commands/InitializeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace AutoSDK.CLI.Commands;

public class InitializeCommand : Command
internal sealed class InitializeCommand : Command
{
public InitializeCommand() : base(name: "init", description: "Creates a new solution with GitHub Actions.")
{
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/Commands/SettingsBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace AutoSDK.CLI.Commands;

public class SettingsBinder(
internal sealed class SettingsBinder(
Option<string> targetFramework,
Option<string> @namespace,
Option<string> clientClassName,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/Commands/SimplifyCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace AutoSDK.CLI.Commands;

public class SimplifyCommand : Command
internal sealed class SimplifyCommand : Command
{
public SimplifyCommand() : base(name: "simplify", description: "Simplifies OpenAPI spec.")
{
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK.CLI/Helpers.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace AutoSDK.CLI;

public static class Helpers
internal static class Helpers
{
public static string GetSettingsFolder()
{
Expand Down

0 comments on commit 7d8f442

Please sign in to comment.