ProcessCommandResultContext Methods
ClassMethods1 member
Context passed to callback to configure
ExecuteCommandResult when using ResourceBuilderExtensions.WithProcessCommand. Returns the last
maxLines process output lines formatted for display. public sealed class ProcessCommandResultContext{ public string GetFormattedOutput( int maxLines = 50, string outputDescription = "Command output") { // ... }}Parameters
maxLinesintoptionalThe maximum number of lines to include.outputDescriptionstringoptionalThe label used when the output is truncated.Returns
stringThe formatted output.