nsnail
a46321c06b
Support command description localization
...
eg.
[CommandOption("-a|--args")]
[Description(nameof(Str.GitArgs))]
[Localization(typeof(Str))]
public string Args { get; set; }
The program will go to the autogenerated class "Str.designer.cs" of the Resx file, to looking for local value of the the resource symbol "GitArgs" , instead of displaying the original: "GitArgs"
2024-11-29 14:52:42 +08:00
Tom Deseyn
29ab313bb9
Async overloads for AnsiConsole Prompt/Ask/Confirm. ( #1194 )
...
* Add async overloads for Prompt/Ask/Confirm.
* Added unit test coverage - AskAsync, ConfirmAsync
* Reordered methods to group non-async/async of the same tests together
---------
Co-authored-by: Frank Ray <52075808+FrankRay78@users.noreply.github.com>
2024-11-28 10:56:19 +00:00
Phil Scott
92daeb739d
Update Docs SDK version to 9.0.100, disable NuGetAudit temporarily, and upgrade Scriban to version 5.12.0 for generator
2024-11-23 21:05:36 +01:00
Phil Scott
43e9669395
Update documentation packages to latest versions
...
* HighlightService was modified to support GetClassifiedSpansAsync method
* Updated Program.cs to pull in the proper location of the Json and ImageSharp extension projects
* Statiq must have changed how they are doing xrefs, so I adjusted those to be more specific with a few links
2024-11-23 14:48:46 +01:00
Phil Scott
ab8384acf6
Update PolySharp to version 1.15.0 and remove Nullable package references
2024-11-23 14:47:01 +01:00
Phil Scott
b2689be3ed
Enhance ExceptionFormatter for AOT compatibility by adding fallback handling for stack frames.
2024-11-22 22:55:01 +01:00
Phil Scott
835143d95f
Add Native AOT support documentation and update project files for AOT compatibility
2024-11-22 22:55:01 +01:00
Phil Scott
8f2a859087
Fallback to using GetConverter if GetIntrinsicConverter doesn't find one.
2024-11-22 22:55:01 +01:00
Phil Scott
2be8e8da4e
Adds fallback for ExceptionFormatter in AOT
2024-11-22 22:55:01 +01:00
Phil Scott
2a8810affd
Explicitly marks Spectre.Console.Cli as not trimmable and not appropriate for AOT scenarios. Additionally adds a warning to CommandApp for users who may try it.
2024-11-22 22:55:01 +01:00
Phil Scott
e1d21e7e61
Adding polysharp properly
2024-11-22 22:55:01 +01:00
Phil Scott
c7c3ebdf57
Fix assembly name retrieval for FSharp.Core in TypeNameHelper to work better in AOT scenarios
2024-11-22 22:55:01 +01:00
Phil Scott
b67af32423
Add RequiresDynamicCode attribute to exception formatter to indicate incompatability with AOT
2024-11-22 22:55:01 +01:00
Phil Scott
10773a5625
Refactor enum value retrieval to use EnumUtils for better compatibility with NetStandard 2.0 and AOT
2024-11-22 22:55:01 +01:00
Phil Scott
4802751357
Add AOT compatibility and PolySharp package support
2024-11-22 22:55:01 +01:00
Frank Ray
4515d89705
ProgressTask.GetPercentage() returns 100 when max value is 0 ( #1694 )
2024-11-22 12:44:00 +01:00
Patrik Svensson
be45494d6e
Merge pull request #1691 from phil-scott-78/emoji-perf
2024-11-21 00:30:24 +01:00
Phil Scott
69689d2ba1
Changes Emoji dictionary to OrdinalIgnoreCase for performance
...
This code is ran on startup, and instantiating a new InvariantCultureIgnoreCase was taking up 11ms, which was half the time in AOT.
2024-11-20 17:55:33 -05:00
Tim Pilius
aa9e5c48c6
Adding TransferSpeedColumn configuration to display bits/bytes + binary/decimal prefixes ( #904 )
...
* Adding configuration to TransferSpeedColumn to be able to display in both bytes/bits, as well as using binary/decimal prefix definitions.
---------
Co-authored-by: Frank Ray <52075808+FrankRay78@users.noreply.github.com>
2024-11-19 15:41:49 +00:00
PascalSenn
8d06daf355
Fixed typo in Segment
description ( #1687 )
2024-11-19 06:09:22 +01:00
Mattias Karlsson
cecfdc386c
Fix typos ( #1684 )
2024-11-13 15:00:21 +01: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
Jonathan Sheely
574ead6d46
Added hex color conversion ( #1432 )
...
* Added hex color conversion
---------
Co-authored-by: Frank Ray <52075808+FrankRay78@users.noreply.github.com>
Co-authored-by: Nils Andresen <nils@nils-andresen.de>
2024-11-13 13:35:26 +01:00
BlazeFace
a87277e859
Adding Enricher for Azure Pipelines ( #1675 )
2024-11-04 16:30:35 +01:00
Patrik Svensson
fdc03f2081
Merge pull request #1514 from BlazeFace/blz/issues/1390
2024-10-30 01:36:05 +01:00
BlazeFace
3eb620a44e
Fix typo
2024-10-26 07:27:31 -07:00
BlazeFace
bc88da8056
Added last file and used fluent style, relocated test
2024-10-26 07:25:38 -07:00
BlazeFace
00b9aecb4f
Add new test files
2024-10-26 07:18:52 -07:00
BlazeFace
444dbed259
Merge remote-tracking branch 'upstream/main' into blz/issues/1390
...
# Conflicts:
# src/Tests/Spectre.Console.Tests/Expectations/Widgets/Layout/Render_Layout_With_Three_And_One_Columns.Output.verified.txt
2024-10-25 17:47:02 -07:00
Arman Ossi Loko
a32dc8030b
Fixed docs examples URLs redirecting to the examples repository
2024-10-18 11:33:23 +02:00
renovate[bot]
75547b2436
chore: Update dependency Verify.Xunit to 26.4.5
2024-09-14 14:47:38 +02:00
renovate[bot]
22d1cbe01f
chore: Update dependency Roslynator.Analyzers to 4.12.5
2024-09-14 14:36:40 +02:00
Patrik Svensson
7f8ed509bb
Fix strange sentence in docs
2024-09-14 14:15:32 +02:00
Cédric Luthi
c70a8b8fc5
Improve exception if a (multi)selection prompt is used incorrectly
...
Before this commit, the selection prompt would throw an `InvalidOperationException` (Sequence contains no elements) and the multi selection prompt would throw an `ArgumentOutOfRangeException` (Index was out of range. Must be non-negative and less than the size of the collection.)
Both would occur because the prompts were never meant to be empty.
2024-09-11 10:16:21 +02:00
renovate[bot]
b470af11f7
chore: Update dependency Microsoft.NET.Test.Sdk to 17.11.1 ( #1630 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 09:00:27 +02:00
renovate[bot]
23b160a3f5
chore: Update dependency Verify.Xunit to 26.4.4 ( #1624 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 08:57:27 +02:00
renovate[bot]
1345a6347a
chore: Update dependency MinVer to v6 ( #1629 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 08:52:25 +02:00
Davide Piccinini
78f3f80b17
Update documentation: add example for the Text Prompt usage ( #1636 )
2024-09-10 09:03:20 +02:00
Davide Piccinini
a55b80220d
Enhance the style of the checkboxes for multi-selection ( #1244 )
...
* Enhance the checkboxes' style for multi-selection by applying the selected style, if available, to the checkboxes currently selected.
2024-09-09 16:35:01 +02:00
Davide Piccinini
f8a4b2271d
Add unit test to ensure code coverage
2024-09-09 14:28:13 +02:00
Davide Piccinini
dba7ad0875
Fix SA1513 line 38 Tree.cs
2024-09-09 14:28:13 +02:00
Davide Piccinini
322ed2efbb
Fix error SA1300 in full property creation
2024-09-09 14:28:13 +02:00
Davide Piccinini
156d254208
Fix issue 1153 on expanded tree
2024-09-09 14:28:13 +02:00
d.piccinini
3437130bf0
Removed blank line
2024-09-09 10:21:00 +02:00
d.piccinini
32384f7b8d
Add custom highligh style for single calendar event
2024-09-09 10:21:00 +02:00
Cédric Luthi
32361d3f15
Cleanup prompt tests ( #1635 )
...
* Move Should_Search_In_Remapped_Result into the SelectionPromptTests class where it belongs
* Use file sealed class for CustomItem, like it's done with CustomSelectionItem in the selection prompt tests
2024-09-07 15:19:55 +01:00
Daniel Cazzulino
b9d2d2df6d
Add spanish translation for help strings
2024-09-06 20:36:30 +02:00
Daniel Cazzulino
8e44a83737
Simplify InternalsVisibleTo
...
If the $(PublicKey) property is used, the SDK targets will automatically use it for the assembly attributes.
See https://github.com/dotnet/sdk/pull/3439
Simplifies https://github.com/spectreconsole/spectre.console/pull/1623
2024-09-06 20:31:18 +02:00
Patrik Svensson
fd69ad0b01
Fix search bug in prompt related to custom item types
...
Closes #1626
2024-09-03 00:46:18 +02:00
Kirill Osenkov
753894de94
Bump Spectre.Verify.Extensions to strong-named version
...
Remove NoWarn now that Spectre.Verify.Extensions is strong-named
2024-09-02 02:49:21 +02:00