-
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.
Use yaml static context, use dictionary for app config
- Loading branch information
Showing
7 changed files
with
57 additions
and
31 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,16 +1,17 @@ | ||
using System.ComponentModel; | ||
using YamlDotNet.Serialization; | ||
|
||
namespace Hexus.Daemon.Configuration; | ||
|
||
public sealed record HexusApplication | ||
{ | ||
public required string Name { get; set; } | ||
public required string Executable { get; set; } | ||
[YamlIgnore] | ||
public string Name { get; set; } = null!; | ||
public string Executable { get; set; } = null!; | ||
|
||
[DefaultValue("")] public string Arguments { get; set; } = ""; | ||
public string WorkingDirectory { get; set; } = ""; | ||
public string? Arguments { get; set; } | ||
public string WorkingDirectory { get; set; } = null!; | ||
public HexusApplicationStatus Status { get; set; } = HexusApplicationStatus.Exited; | ||
[DefaultValue("")] public string Note { get; set; } = ""; | ||
public string? Note { get; set; } | ||
|
||
public Dictionary<string, string> EnvironmentVariables { 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
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