Frank Ray and Patrik Svensson
c4a97f3c89
Improved unit test coverage using Spectre.Console.Tests.Data.VersionCommand
2025-04-08 16:53:43 +02:00
Frank Ray and Patrik Svensson
4ac88b5d3f
Help writer unit tests; including coverage of when the -v|--version should (and shouldn't) appear in the help output
2025-04-08 16:53:43 +02:00
Frank Ray and Patrik Svensson
c937c8800a
Updated test names for better self-documentation
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
349eac1e22
Bug fix: Tests with remaining args should not be expected to pass strict parsing
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
2f8a38f169
Add strict parsing to all version tests, an obvious omission in main
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
e9f9f56189
Check if the command has a version option on its setting class
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
cefb51df7b
Unit tests to ensure VersionCommand executes when -v|--version is specified, rather than showing the ApplicationVersion number
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
75b3b83210
Removed unnecessary using directive
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
dfdd129dd0
Display the application version (if set) when a version flag is the first argument, even if a default command has been set.
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
17c7a4f7d6
Cover -v and --version options in unit tests
2025-04-08 16:43:49 +02:00
Frank Ray and Patrik Svensson
520efe07e2
Significant improvement to the command line parsing
2025-04-08 16:38:37 +02:00
Frank Ray and Patrik Svensson
c81bc5fe1d
Fix tests with incorrect validation that were in the main branch
...
Tests had incorrect expectations for the parsing of branch + default command arguments
2025-04-08 16:38:37 +02:00
Frank Ray and Patrik Svensson
edf7f23957
Add strict parsing to almost all branches tests, an obvious omission
2025-04-08 16:38:37 +02:00
Frank Ray and Patrik Svensson
80a8b0e406
Cosmetic: Remove ugly looking variable naming
2025-04-08 16:38:37 +02:00
Frank Ray and Patrik Svensson
dca67da8cd
New unit tests to ensure unknown flags are added to remaining args
2025-04-08 16:38:37 +02:00
Frank Ray and GitHub
039553efbb
Disable the GitHub 'Blank issue' option offered to users
2025-01-25 18:30:02 +00:00
Frank Ray
8c5264d117
Trimming of TestConsole output by CommandAppTester is configurable
2025-01-21 08:39:31 +00:00
Frank Ray and GitHub
4515d89705
ProgressTask.GetPercentage() returns 100 when max value is 0 ( #1694 )
2024-11-22 12:44:00 +01:00
Frank Ray and GitHub
ecdfdd4b85
Please upvote 👍 if you are interested in it ( #1491 )
2024-04-16 08:43:29 +01:00
Frank Ray and GitHub
a893a9601e
Top Issues GitHub Action ( #1488 )
2024-04-14 12:47:55 +01:00
Frank Ray and Patrik Svensson
43f9ae92ad
Pipe character for listing options - Fully implemented and tested.
2024-03-18 16:31:55 +01:00
Frank Ray and GitHub
9cc888e5ad
Make HelpProvider colors configurable ( #1408 )
2024-01-18 15:31:28 +01:00
Frank Ray and Patrik Svensson
d5b4621233
Fully addresses review comments
2024-01-15 19:22:34 +01:00
Frank Ray and Patrik Svensson
cee97821d6
Fix stylecop warning
2024-01-15 19:22:34 +01:00
Frank Ray and Patrik Svensson
55c763a5c2
Completed
2024-01-15 19:22:34 +01:00
Frank Ray and Patrik Svensson
d03c10623c
Unit test to reproduce the -v/--version bug
2024-01-15 19:22:34 +01:00
Frank Ray and GitHub
250b1f4c9c
Add localization support to help provider ( #1349 )
...
Closes #1349
2023-11-11 00:22:52 +01:00
Frank Ray and GitHub
131b37fff8
Allow custom help providers ( #1259 )
...
Allow custom help providers
* Version option will show in help even with a default command
* Reserve `-v` and `--version` as special Spectre.Console command line arguments (nb. breaking change for Spectre.Console users who have a default command with a settings class that uses either of these switches).
* Help writer correctly determines if trailing commands exist and whether to display them as optional or mandatory in the usage statement.
* Ability to control the number of indirect commands to display in the help text when the command itself doesn't have any examples of its own. Defaults to 5 (for backward compatibility) but can be set to any integer or zero to disable completely.
* Significant increase in unit test coverage for the help writer.
* Minor grammatical improvements to website documentation.
2023-09-08 09:51:33 +02:00
Frank Ray and GitHub
0ec70a44db
Async command unit tests
2023-05-19 17:19:17 +01:00
Frank Ray and GitHub
4c0178cf9a
Merge branch 'main' into Blog-post-for-0.47.0
2023-05-19 16:50:48 +01:00
Frank Ray
296bc61837
Updated links and github usernames to markdown url format so they render as native html links
2023-05-19 16:48:48 +01:00
Frank Ray and Patrik Svensson
766ccb1f1b
Minor grammatical update
2023-05-19 16:40:57 +02:00
Frank Ray and Patrik Svensson
f7314dc2e8
Blog post for 0.47.0
2023-05-19 16:40:57 +02:00
Frank Ray
f453890d13
Minor grammatical update
2023-05-19 12:26:35 +01:00
Frank Ray
2c8f459806
Blog post for 0.47.0
2023-05-19 12:22:28 +01:00
Frank Ray and GitHub
714cf179cb
Command line improvements ( #1103 )
...
Closes #187
Closes #203
Closes #1059
2023-04-02 22:43:21 +02:00
Frank Ray and GitHub
b793482ebb
Command line argument parsing improvements ( #1048 )
...
* Support negative numbers as command option values
* Support command line options before arguments
* POSIX-compliant handling of quotes (double and single, terminated and unterminated), whitespace, hyphens, and special characters (e.g. emojis)
2022-12-05 01:07:53 +01:00
Frank Ray and GitHub
c1e9c1a99f
Clarified the license for SixLabors.ImageSharp ( #1073 )
...
* Clarified the license for SixLabors.ImageSharp
* Updated after review by @JimBobSquarePants
2022-11-17 15:21:01 +01:00