Commit Graph

861 Commits

Author SHA1 Message Date
Phil Scott
1ec7b8ae8f Fixes issue with Panel not applying overflow to children
Add tests for widget content overflow scenarios in Panel, Table, and Grid widgets.
2025-10-31 21:42:02 +01:00
Phil Scott
010beffae0 Normalizes paths when writing exceptions to the console for tests.
The verified output for Should_Write_GenericException was outputting ProjectDirectory}Data\Exceptions.cs on my Windows machine, but the Verified version wasProjectDirectory}Data/Exceptions.cs

Wasn't causing a build issue because we run those on Ubuntu, but locally it was giving me an error.
2025-10-31 16:48:50 +01:00
Patrik Svensson
5af8e09111 Update .NET SDK version 0.53.0 2025-10-26 17:50:35 +01:00
Patrik Svensson
5dcf72cb8f Update generator dependencies 2025-10-26 17:50:26 +01:00
Patrik Svensson
64c31f5b76 Update GitHub Actions dependencies 2025-10-26 17:50:15 +01:00
Patrik Svensson
4562f014ac Update dependencies 2025-10-26 17:45:07 +01:00
Cédric Luthi
e51812237e Update the Spectre.Console.Cli documentation with CancellationToken
Now that #1911 is merged, all `Execute` methods of commands have a new CancellationToken parameter. Update the documentation to reflect that.

New documentation shall still be written with an example on how to pass the top-level CancellationToken to the app.Run(Async) method.
2025-10-16 22:50:52 +02:00
Patrik Svensson
749f0fded8 Update Verify to 31.0.1 2025-10-11 20:54:48 +02:00
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
d90e94dbb3 Fix spacing in blog post 2025-10-10 21:27:37 +02:00
Patrik Svensson
169abca986 Add blog post for 0.52.0 2025-10-10 21:12:54 +02:00
Patrik Svensson
3c2156268c Remove global.json for docs project 0.52.0 2025-10-10 20:36:13 +02:00
Patrik Svensson
6fb81103f0 Update more dependencies 2025-10-10 20:32:48 +02:00
Patrik Svensson
880e83b27c Update Cake to 5.1.0 2025-10-10 20:20:50 +02:00
Patrik Svensson
0b270e1ccd Update dependencies 2025-10-10 20:13:21 +02:00
Mattias Karlsson
2d9e8069fd Fix OPENCLI_VISIBILITY_INTERNAL to DefineConstants concat 2025-10-06 23:19:10 +02:00
Patrik Svensson
b551bbd244 Add OpenCLI integration to Spectre.Console.Cli 2025-10-02 02:05:46 +02:00
Patrik Svensson
3a70fbec75 Update the blog post with info about 0.51.1 2025-09-07 01:04:05 +02:00
Patrik Svensson
c67b3df3ba Fix package references 0.51.1 2025-09-07 00:44:00 +02:00
Patrik Svensson
8e474f514c Add blog post for 0.51 release 2025-09-07 00:29:44 +02:00
Patrik Svensson
097f740bbd Revert back to using a single solution
Also migrates solution format from sln to slnx.
0.51.0
2025-09-06 23:59:53 +02:00
Patrik Svensson
ba7299adcf Build and package Spectre.Console.Cli as part of build script 2025-09-06 23:33:54 +02:00
mattfennerom
d84f9ae713 fix bug setting Header (#1890) 2025-09-05 15:42:18 +02:00
Mitch Denny
3a6d3e4520 Fix space triggering selection when items in selection list have a space. (#1881)
* Changes Search in SelectionPrompt to accept Space Key as text

---------

Co-authored-by: Philipp <30900810+DerReparator@users.noreply.github.com>
2025-08-19 20:09:12 +02:00
Tobias Tengler
a8b2f1f1e0 Support J and K for navigating list prompts (#1877) 2025-08-13 18:23:26 +02:00
FroggieFrog
0889c2f97c Update spinners (#1873)
Update spinners from https://github.com/sindresorhus/cli-spinners
2025-08-03 13:19:22 +02:00
Patrik Svensson
f4782d9916 Update dependencies 2025-08-03 13:13:12 +02:00
Frank Ray
8b59ddfd41 Separate Spectre.Console.Cli from Spectre.Console (#1850) 2025-07-23 23:11:07 +02:00
Mustafa Al-Janabi
6ad814cab0 Corrects comment for optional text prompt (#1857) 2025-07-16 00:00:29 +02:00
Daniel
f32f80dc57 Fix resizing of Live views with reduced size. (#1840) 2025-06-21 12:30:18 +02:00
Pannoniae
7f3ebe02c4 Reduce memory usage for rune width cache. (#1756) 2025-06-20 12:49:45 +02:00
renovate[bot]
d77bfb6391 chore: Update dependency AngleSharp to 1.3.0 (#1809)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 18:05:15 +02:00
renovate[bot]
7819f0693d chore: Update dependency SixLabors.ImageSharp to 3.1.10 (#1812)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 18:01:14 +02:00
renovate[bot]
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
renovate[bot]
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
renovate[bot]
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
renovate[bot]
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
renovate[bot]
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
Weihan Li
65bab890f2 Update System.Memory dependency 2025-06-05 10:34:24 +02:00
Elementttto
bd0e2d3e22 Fixed link not dispalyed in markup in Style.cs and added unit test cases (#1750) 2025-06-02 10:19:53 +02:00
Elemento
9efc426eb9 Added documentation for align widget 2025-06-01 13:54:15 +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
Bartosz Ogiński
d836ad1805 Add ShowRowSeparators in Table Widget docs (#1807) 2025-04-14 18:34:09 +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
martincostello
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
Patrik Svensson
b5c839030c Blog post: Fix broken PR links 2025-04-08 20:45:50 +02:00
Patrik Svensson
b08ca1c4d7 Add blog post 2025-04-08 18:29:25 +02:00
Patrik Svensson
68fcfe0de4 Update dependencies and .NET SDK 0.50.0 2025-04-08 17:30:03 +02:00