-
-
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.
Merge pull request #5 from TehGM/dev
- Loading branch information
Showing
14 changed files
with
174 additions
and
49 deletions.
There are no files selected for viewing
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,18 @@ | ||
using System.Collections.Generic; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace TehGM.Fsriev | ||
{ | ||
public class ApplicationOptions | ||
{ | ||
/// <summary>Output mode to use for command output.</summary> | ||
public CommandOutputMode CommandOutputMode { get; set; } = CommandOutputMode.Console; | ||
/// <summary>Log level used for output.</summary> | ||
/// <remarks><para>Only applicable when <see cref="CommandOutputMode"/> is set to <see cref="CommandOutputMode.Log"/>.</para> | ||
/// <para>This affects only normal output. STDERR output will always be logged as <see cref="LogLevel.Error"/>.</para></remarks> | ||
public LogLevel CommandOutputLevel { get; set; } = LogLevel.Information; | ||
|
||
/// <summary>Configs for all watchers.</summary> | ||
public IEnumerable<WatcherOptions> Watchers { get; set; } | ||
} | ||
} |
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,10 @@ | ||
namespace TehGM.Fsriev | ||
{ | ||
public enum CommandOutputMode | ||
{ | ||
/// <summary>Show command output using <see cref="System.Console"/> class.</summary> | ||
Console = 1 << 0, | ||
/// <summary>Show command output using the logging library.</summary> | ||
Log = 1 << 1 | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.