I hereby claim:
- I am thoemmi on github.
- I am thoemmi (https://keybase.io/thoemmi) on keybase.
- I have a public key ASD1LqmfVwJ9qgVmFamgIyLV28FTLDOwzDiIph2oyBtA9go
To claim this, I am signing this object:
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true, HelpMessage="Path to work item template definition file")] | |
[string] | |
$witdPath | |
) | |
# path to dot.exe; e.g. use "choco install graphviz" | |
$dotPath = "C:\ProgramData\chocolatey\bin\dot.exe" |
public class EnumFlagsConverter : JsonConverter | |
{ | |
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) | |
{ | |
var x = ((Enum) value).ToString(); | |
var list = new List<string>(); | |
foreach (var v in x.Split(new[] {", "}, StringSplitOptions.RemoveEmptyEntries)) | |
{ | |
list.Add(v); |
I hereby claim:
To claim this, I am signing this object:
public static class AnsiConsoleExtensions | |
{ | |
public static IAnsiConsole WriteJson(this IAnsiConsole console, JsonElement node, JsonStyle? jsonStyle = null) | |
{ | |
ArgumentNullException.ThrowIfNull(console); | |
ArgumentNullException.ThrowIfNull(node); | |
console.WriteJson(node, jsonStyle ?? JsonStyle.Default, 0); | |
return console; | |
} |