fix(cli): resolve CLI-001 — honor SCADALINK_FORMAT and config-file format precedence

This commit is contained in:
Joseph Doherty
2026-05-16 19:33:09 -04:00
parent d8f99ba781
commit 5a08b04535
5 changed files with 87 additions and 6 deletions
+1 -1
View File
@@ -42,8 +42,8 @@ public static class DebugCommands
cmd.SetAction(async (ParseResult result) =>
{
var instanceId = result.GetValue(idOption);
var format = result.GetValue(formatOption) ?? "json";
var config = CliConfig.Load();
var format = CommandHelpers.ResolveFormat(result, formatOption, config);
var url = result.GetValue(urlOption);
if (string.IsNullOrWhiteSpace(url))