-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,219 additions
and
1,189 deletions.
There are no files selected for viewing
300 changes: 153 additions & 147 deletions
300
Source/Sholo.CommandLine/AppBuilder/BaseCommandLineAppBuilder.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
using Sholo.CommandLine.AppBuilder; | ||
|
||
namespace Sholo.CommandLine | ||
namespace Sholo.CommandLine; | ||
|
||
// Inherit from the base class. | ||
public sealed class CommandLineAppBuilder : BaseCommandLineAppBuilder<CommandLineAppBuilder> | ||
{ | ||
// Inherit from the base class. | ||
public sealed class CommandLineAppBuilder : BaseCommandLineAppBuilder<CommandLineAppBuilder> | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Source/Sholo.CommandLine/CommandLineAppBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Sholo.Utils.Logging; | ||
|
||
namespace Sholo.CommandLine; | ||
|
||
public static class CommandLineAppBuilderExtensions | ||
{ | ||
public static ICommandLineAppBuilder<TSelf> UseSerilogConsole<TSelf>(this ICommandLineAppBuilder<TSelf> builder) | ||
where TSelf : ICommandLineAppBuilder<TSelf> | ||
{ | ||
builder.ConfigureLogging((ctx, lb) => lb.AddSerilogConsole(ctx.HostConfiguration)); | ||
return builder; | ||
} | ||
} |
41 changes: 0 additions & 41 deletions
41
Source/Sholo.CommandLine/CommandPlugin/BaseCommandPlugin.cs
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
Source/Sholo.CommandLine/CommandPlugin/BaseLambdaCommandPlugin.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.