mirror of
				https://github.com/Tyrrrz/CliFx.git
				synced 2025-10-25 15:19:17 +00:00 
			
		
		
		
	Revert help text changes in the command section
Not happy with how it looks right now. Confusing to the user.
This commit is contained in:
		| @@ -65,7 +65,7 @@ namespace CliFx.Tests | ||||
|         } | ||||
|  | ||||
|         [Fact] | ||||
|         public async Task Help_text_shows_commands_list_with_description_and_usage_info() | ||||
|         public async Task Help_text_shows_usage_format_which_lists_available_sub_commands() | ||||
|         { | ||||
|             // Arrange | ||||
|             var (console, stdOut, _) = VirtualConsole.CreateBuffered(); | ||||
| @@ -78,16 +78,14 @@ namespace CliFx.Tests | ||||
|                 .Build(); | ||||
|  | ||||
|             // Act | ||||
|             var exitCode = await application.RunAsync(new[] { "--help" }); | ||||
|             var exitCode = await application.RunAsync(new[] {"--help"}); | ||||
|  | ||||
|             // Assert | ||||
|             exitCode.Should().Be(0); | ||||
|             stdOut.GetString().Should().ContainAll( | ||||
|                 "Commands", | ||||
|                 "Named command description", | ||||
|                 "named [options]", | ||||
|                 "Named sub command description", | ||||
|                 "named sub [options]" | ||||
|                 "Usage", | ||||
|                 "... named", | ||||
|                 "... named sub" | ||||
|             ); | ||||
|  | ||||
|             _output.WriteLine(stdOut.GetString()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user