Commit Graph

828 Commits

Author SHA1 Message Date
465be9391b chore: Update dependency Microsoft.Playwright to 1.52.0 (#1816)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 18:00:41 +02:00
7e5ddb1efe chore: Update dependency Verify.Xunit to v30 (#1818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 17:57:36 +02:00
aabe8eeaf8 chore: Update dependency Scriban to 6.2.1 (#1808)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 17:56:33 +02:00
108b23fca8 chore: Update dependency xunit.runner.visualstudio to 3.1.1 (#1820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 17:55:15 +02:00
7051bc9e2d chore: Update dependency Microsoft.NET.Test.Sdk to 17.14.1 (#1822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 17:52:31 +02:00
65bab890f2 Update System.Memory dependency 2025-06-05 10:34:24 +02:00
bd0e2d3e22 Fixed link not dispalyed in markup in Style.cs and added unit test cases (#1750) 2025-06-02 10:19:53 +02:00
9efc426eb9 Added documentation for align widget 2025-06-01 13:54:15 +02:00
2570202990 Fix build errors 2025-05-25 16:42:43 +02:00
e4b5b56d93 Update help output for required options 2025-05-25 16:42:43 +02:00
67c3909bbb Add support for required options 2025-05-25 16:42:43 +02:00
d836ad1805 Add ShowRowSeparators in Table Widget docs (#1807) 2025-04-14 18:34:09 +02:00
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
6105ee2a86 Fix IndexOutOfRangeException
Fix `IndexOutOfRangeException` if an exception does not have an associated stack trace.

Resolves #1798.
2025-04-09 12:36:53 +02:00
b5c839030c Blog post: Fix broken PR links 2025-04-08 20:45:50 +02:00
b08ca1c4d7 Add blog post 2025-04-08 18:29:25 +02:00
68fcfe0de4 Update dependencies and .NET SDK 2025-04-08 17:30:03 +02:00
b0f82d787d Documentation improvements for 1.0 release (#1620)
* Rewrote the Dependency Injection section for better clarity and readability.
* Syntax fix: Should reference interfaces, not implementation
* Renamed TypeRegistrar to MyTypeRegistrar, making it more obvious it is a custom class the user must provide.
2025-04-08 17:01:17 +02:00
1dabf25e1c Add testing documentation (#1631) 2025-04-08 16:58:25 +02:00
958820dd66 Tighten up when to show/hide the application "-v|--version" option. 2025-04-08 16:53:43 +02:00
c4a97f3c89 Improved unit test coverage using Spectre.Console.Tests.Data.VersionCommand 2025-04-08 16:53:43 +02:00
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
c937c8800a Updated test names for better self-documentation 2025-04-08 16:43:49 +02:00
349eac1e22 Bug fix: Tests with remaining args should not be expected to pass strict parsing 2025-04-08 16:43:49 +02:00
2f8a38f169 Add strict parsing to all version tests, an obvious omission in main 2025-04-08 16:43:49 +02:00
e9f9f56189 Check if the command has a version option on its setting class 2025-04-08 16:43:49 +02:00
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
75b3b83210 Removed unnecessary using directive 2025-04-08 16:43:49 +02:00
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
17c7a4f7d6 Cover -v and --version options in unit tests 2025-04-08 16:43:49 +02:00
520efe07e2 Significant improvement to the command line parsing 2025-04-08 16:38:37 +02:00
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
edf7f23957 Add strict parsing to almost all branches tests, an obvious omission 2025-04-08 16:38:37 +02:00
80a8b0e406 Cosmetic: Remove ugly looking variable naming 2025-04-08 16:38:37 +02:00
dca67da8cd New unit tests to ensure unknown flags are added to remaining args 2025-04-08 16:38:37 +02:00
78272e62e6 Merge pull request #1779 from Moustafaa91/bug/1776 2025-03-24 00:05:14 +01:00
540fb0195f Upgrade SixLabors.ImageSharp to 3.1.7 2025-03-23 13:44:18 +00:00
93668e92b6 Changed IConfigurator to return IConfigurator instead of void for (#1762) 2025-02-24 20:57:23 +00:00
11a320c7c9 Conditionally trim trailing periods of argument and option descriptions (#1740) 2025-02-11 21:13:30 +00:00
c1eb94c1db Merge pull request #1755 from 0xced/fix-generic-exception-formatting 2025-02-05 18:39:38 +01:00
9d8d3c1d6d Fix generic exception formatting with shortened types
Fixes #1754
2025-02-05 18:20:21 +01:00
7e1142df58 Add tests for generic exception formatting 2025-02-05 18:20:21 +01:00
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
f1f633cc72 Merge pull request #1747 from phil-scott-78/spinner-extension 2025-01-28 18:41:34 +01:00
05ce33615e Add async spinner extension methods and related documentation 2025-01-28 10:20:24 -05:00
97715f2553 Merge pull request #1743 from spectreconsole/FrankRay78-disable-blank-issue 2025-01-25 20:20:59 +01:00
039553efbb Disable the GitHub 'Blank issue' option offered to users 2025-01-25 18:30:02 +00:00
f704f2a0e8 Merge pull request #1739 from FrankRay78/1738-CommandAppTester-is-trimming-TestConsole-output 2025-01-21 10:33:25 +01:00
8c5264d117 Trimming of TestConsole output by CommandAppTester is configurable 2025-01-21 08:39:31 +00:00
58bf89a56a Implement 3 digit hex parsing (#1708) 2024-12-04 16:31:21 +01:00