Cédric Luthi
f5f61ca610
Add top-level CancellationToken support to Spectre.Console.Cli
...
Also raise CA2016 (forward the CancellationToken parameter to methods that take one) to warning
Fixes #701
2025-10-11 20:51:01 +02:00
Patrik Svensson
b551bbd244
Add OpenCLI integration to Spectre.Console.Cli
2025-10-02 02:05:46 +02:00
Patrik Svensson
c67b3df3ba
Fix package references
2025-09-07 00:44:00 +02:00
Tobias Tengler
a8b2f1f1e0
Support J and K for navigating list prompts ( #1877 )
2025-08-13 18:23:26 +02:00
Frank Ray
8b59ddfd41
Separate Spectre.Console.Cli from Spectre.Console ( #1850 )
2025-07-23 23:11:07 +02:00
Patrik Svensson
2570202990
Fix build errors
2025-05-25 16:42:43 +02:00
Patrik Svensson
e4b5b56d93
Update help output for required options
2025-05-25 16:42:43 +02:00
Patrik Svensson
67c3909bbb
Add support for required options
2025-05-25 16:42:43 +02:00
Marek
57dd8ee410
#1718 TestConsole can now be configured and accessed in CommandAppTester ( #1803 )
...
* TestConsole can now be configured and accessed in CommandAppTester
* Add test with mocked user inputs for interactive command
* Add documentation for using the CommandAppTester
Co-authored-by: Patrik Svensson <patriksvensson@users.noreply.github.com >
Co-authored-by: Marek Magath <Marek.Magath@solarwinds.com >
2025-04-14 10:38:03 +02:00
Frank Ray
c4a97f3c89
Improved unit test coverage using Spectre.Console.Tests.Data.VersionCommand
2025-04-08 16:53:43 +02:00
Frank Ray
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
c937c8800a
Updated test names for better self-documentation
2025-04-08 16:43:49 +02:00
Frank Ray
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
2f8a38f169
Add strict parsing to all version tests, an obvious omission in main
2025-04-08 16:43:49 +02:00
Frank Ray
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
75b3b83210
Removed unnecessary using directive
2025-04-08 16:43:49 +02:00
Frank Ray
17c7a4f7d6
Cover -v and --version options in unit tests
2025-04-08 16:43:49 +02:00
Frank Ray
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
edf7f23957
Add strict parsing to almost all branches tests, an obvious omission
2025-04-08 16:38:37 +02:00
Frank Ray
80a8b0e406
Cosmetic: Remove ugly looking variable naming
2025-04-08 16:38:37 +02:00
Frank Ray
dca67da8cd
New unit tests to ensure unknown flags are added to remaining args
2025-04-08 16:38:37 +02:00
Melvin Dommer
93668e92b6
Changed IConfigurator to return IConfigurator instead of void for ( #1762 )
2025-02-24 20:57:23 +00:00
Tonttu
11a320c7c9
Conditionally trim trailing periods of argument and option descriptions ( #1740 )
2025-02-11 21:13:30 +00:00
Eduardo Tolino
a6b96e9297
Include resource files for additional cultures in HelpProvider. ( #1717 )
...
* Creation of Resource files for HelpProvider in the following cultures: it, ja, ko, pt, ru, and zh-Hans.
* Add unit test files and update InlineData for new cultures.
* Include --version option in CommandAppTests.Help.cs and update related output files
2025-01-31 21:23:40 +00:00
Frank Ray
8c5264d117
Trimming of TestConsole output by CommandAppTester is configurable
2025-01-21 08:39:31 +00:00
Patrik Svensson
375a708c43
Add net9.0 support, remove legacy TFM:s ( #1682 )
...
* Update .NET SDK to 9.0.100
* Remove net6.0
* Remove net7.0
* Update dependencies
* Install correct .NET SDK:s in GitHub Actions
2024-11-13 14:54:01 +01:00
Patrik Svensson
42fd801876
Preparations for the 1.0 release
...
* Less cluttered solution layout.
* Move examples to a repository of its own.
* Move Roslyn analyzer to a repository of its own.
* Enable central package management.
* Clean up csproj files.
* Add README file to NuGet packages.
2024-08-06 15:38:28 +02:00