From c40739c1504124fc5af7a5b1c4972d752baebb9e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 5 Oct 2025 10:04:31 -0400 Subject: [PATCH] Use "Format" instead of "Output" in some places --- SabreTools.CommandLine/CommandSet.cs | 10 +++++----- SabreTools.CommandLine/Inputs/UserInput.cs | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/SabreTools.CommandLine/CommandSet.cs b/SabreTools.CommandLine/CommandSet.cs index edeee59..a31da22 100644 --- a/SabreTools.CommandLine/CommandSet.cs +++ b/SabreTools.CommandLine/CommandSet.cs @@ -137,7 +137,7 @@ namespace SabreTools.CommandLine #endregion - #region Output + #region Help Output /// /// Output top-level features only @@ -155,7 +155,7 @@ namespace SabreTools.CommandLine output.Add("Available options:"); foreach (var input in _inputs.Values) { - var outputs = input.Output(pre: 2, midpoint: 30); + var outputs = input.Format(pre: 2, midpoint: 30); if (outputs != null) output.AddRange(outputs); } @@ -184,7 +184,7 @@ namespace SabreTools.CommandLine output.Add("Available options:"); foreach (var input in _inputs.Values) { - var outputs = input.OutputRecursive(0, pre: 2, midpoint: 30, includeLongDescription: true); + var outputs = input.FormatRecursive(0, pre: 2, midpoint: 30, includeLongDescription: true); if (outputs != null) output.AddRange(outputs); } @@ -222,7 +222,7 @@ namespace SabreTools.CommandLine // Append the formatted text List output = []; output.Add($"Available options for {featureName}:"); - output.AddRange(input.OutputRecursive(0, pre: 2, midpoint: 30, includeLongDescription: includeLongDescription)); + output.AddRange(input.FormatRecursive(0, pre: 2, midpoint: 30, includeLongDescription: includeLongDescription)); // Now write out everything in a staged manner WriteOutWithPauses(output); @@ -243,7 +243,7 @@ namespace SabreTools.CommandLine output.Add($"\"{featureName}\" not found. Did you mean:"); foreach (string possible in startsWith) { - output.AddRange(_inputs[possible].Output(pre: 2, midpoint: 30, includeLongDescription: includeLongDescription)); + output.AddRange(_inputs[possible].Format(pre: 2, midpoint: 30, includeLongDescription: includeLongDescription)); } // Now write out everything in a staged manner diff --git a/SabreTools.CommandLine/Inputs/UserInput.cs b/SabreTools.CommandLine/Inputs/UserInput.cs index a302070..f3512a5 100644 --- a/SabreTools.CommandLine/Inputs/UserInput.cs +++ b/SabreTools.CommandLine/Inputs/UserInput.cs @@ -610,7 +610,7 @@ namespace SabreTools.CommandLine.Inputs #endregion - #region Output + #region Help Output /// /// Output this feature only @@ -618,7 +618,7 @@ namespace SabreTools.CommandLine.Inputs /// Positive number representing number of spaces to put in front of the feature /// Positive number representing the column where the description should start /// True if the long description should be formatted and output, false otherwise - public List Output(int pre = 0, int midpoint = 0, bool includeLongDescription = false) + public List Format(int pre = 0, int midpoint = 0, bool includeLongDescription = false) { // Create the output list List outputList = []; @@ -731,7 +731,7 @@ namespace SabreTools.CommandLine.Inputs /// Positive number representing number of spaces to put in front of the feature /// Positive number representing the column where the description should start /// True if the long description should be formatted and output, false otherwise - public List OutputRecursive(int tabLevel, int pre = 0, int midpoint = 0, bool includeLongDescription = false) + public List FormatRecursive(int tabLevel, int pre = 0, int midpoint = 0, bool includeLongDescription = false) { // Create the output list List outputList = []; @@ -851,7 +851,7 @@ namespace SabreTools.CommandLine.Inputs // Now let's append all subfeatures foreach (string feature in Children.Keys) { - outputList.AddRange(Children[feature]!.OutputRecursive(tabLevel + 1, pre, midpoint, includeLongDescription)); + outputList.AddRange(Children[feature]!.FormatRecursive(tabLevel + 1, pre, midpoint, includeLongDescription)); } return outputList;