Patrik Svensson
eb4a7d3bf4
Add support for alignment
2022-02-23 09:06:51 -05:00
Patrik Svensson
5e41a2f505
Add support for styling segments
2022-02-23 09:06:51 -05:00
Patrik Svensson
66fc949e2a
Initial work on TextPath widget
2022-02-20 23:26:04 -05:00
Phil Scott
74a2e10ff0
Making tuples pretty too
2022-02-04 10:30:09 +01:00
Phil Scott
78958aae27
Adding better type names for return types and parameters
...
Uses the typenamehelper from Ben.Demystifer to help break down things like generic lists into their actual type display name.
2022-02-04 10:30:09 +01:00
Patrik Svensson
52c1d9122b
Add global usings ( #668 )
...
* Use global usings
* Fix namespace declarations for test projects
2021-12-23 16:50:31 +01:00
Patrik Svensson
ec1188b837
Use file scoped namespace declarations
2021-12-22 08:51:17 -05:00
zameer fouzan
37f661a963
fix: table title's first letter is getting capitalized by default ( #652 )
...
fix for #638
2021-12-07 13:03:30 +01:00
Patrik Svensson
fd4b96944e
Add support for alternate screen buffers
...
Closes #250
2021-11-30 12:13:14 -05:00
Tim Waalewijn
2e5d18fa78
Added the ability to hide CommandOptions. ( #642 )
...
CommandOptions now has an IsHidden property that, when set to true, will cause the option to be hidden from the following cases:
- Help text using `-h|--help`
- Xml representations generated with the `cli xml` command
- Diagnostics displayed with the `cli explain` command
Hidden options can still be outputted with `cli explain` using the `--hidden` option that is also used to display hidden commands.
Fixes #631
2021-11-29 23:16:54 +01:00
Cédric Luthi
8fed3bc575
Fix type conversion in the default pair deconstructor implementation ( #618 )
...
The code using the TypeConverter was written backwards (using `ConvertTo` instead of `ConvertFrom` and would thus throw an exception.
2021-11-22 15:07:58 +01:00
Cédric Luthi
19eb273813
Fix typo in PairDeconstructor class name
...
PairDeconstuctor → PairDeconstructor (was missing an 'r')
Keeping `PairDeconstuctor` and marking it as obsolete since it's a public type.
2021-11-14 10:36:16 +01:00
Nils Andresen
48df9cf68b
( #555 ) added TypeRegistrarBaseTests
...
as a very simple test harness to test implementations of
ITypeRegistrar / ITypeResolver
2021-11-14 01:19:27 +01:00
Patrik Svensson
e86f9d3c5a
Allow color numbers in markup expressions
...
Closes #614
2021-11-09 09:32:50 -05:00
Nils Andresen
ba4b7b97f8
Escape any Markup when displaying selected prompt items
...
If the item contained escaped markup, after the call to RemoveMarkup
the string will contain unescaped markup (that the user explicitly had
escaped before) for those cases we need to escape all remaining markup.
2021-11-02 22:56:54 +01:00
Nils Andresen
c5c1852fc3
( #606 ) added ExceptionHandler to ICommandAppSettings
...
So exceptions can be handled in Spectre.Console.Cli.
Also, some documentation was added.
2021-10-30 01:41:29 +02:00
Nils Andresen
949f35defd
( #502 ) Added GetParent and GetParents to MultiSelectionPrompt
...
So it it possible to find the parent(s) of a given item.
2021-10-30 00:05:16 +02:00
Patrik Svensson
2a3763cdc7
Prove that remaining args works in strict mode
...
Closes #496
2021-10-05 09:34:08 -04:00
rifatx
fa15389158
Add support custom max value for barcharts ( #545 )
2021-10-05 00:49:09 +02:00
Christopher Rollings
e3dfe23b59
Work done to allow user to update table cell. ( #546 )
2021-09-27 13:03:45 +02:00
Nils Andresen
49e8a980a7
Removed the additional registration of ICommand
2021-09-18 23:19:34 +02:00
Cédric Luthi
ffd24ec451
Fix intermittent test failure
...
When running on .NET Framework, the `Should_Report_Max_Remaining_Time_For_Extremely_Small_Progress` would intermittently fail with the following error:
```
task.RemainingTime
should be
10675199.02:48:05.4775807
but was
null
```
This is because it's possible that the two increment share the same timestamp thus making the `RemainingTime` null. To ensure the two increments don't share the same timestamp, we sleep for one millisecond.
Although I have only observed this issue on .NET Framework it would be possible that it occasionally also occur on .NET Core.
2021-08-30 11:08:24 +02:00
Liam Sho
7276e11ecc
Add a test for rendering table with EA characters
...
Test rending a table with East Asia characters (Chinese, Japanese, Korean).
The verified text file may look weird, but it looks normal and correctly in Console (tested in Windows Terminal, Terminal.app in macOS Monterey)
2021-08-24 16:45:30 +02:00
Patrik Svensson
e169df6303
Add support for manipulating individual table rows
...
Closes #500
2021-08-14 23:35:07 +02:00
Patrik Svensson
fa5a1e88ec
Clean up Widgets
...
* Move /Widgets/Live/* to /Live/*
* Move /Widgets/Prompt/* to /Prompts/*
* Move tests and expectations to match the new locations
2021-07-14 08:38:44 -04:00
Antonio Valentini
d532e1011f
Add default value parameter to Confirm extension
...
Closes #482
2021-07-12 08:47:36 +02:00
Patrik Svensson
2011cb2eff
Do not append suffix to text prompt
...
Do not append suffix to text prompt unless
there are choices or a default value specified.
Closes #413
2021-07-05 09:15:54 +02:00
Patrik Svensson
865552c3f2
Add support for selecting prompt items
...
Closes #447
2021-06-28 08:41:24 -04:00
Nils Andresen
6b5b31957c
Added a TypeRegistrar to CommandAppTester
...
exposed as a public property.
For convenience, and to keep the similarity to the real CommandApp
it is also available in the ctor of CommandAppTester.
2021-06-24 01:42:29 +02:00
Patrik Svensson
c9b178ac96
Moved analyzer tests to its own project
...
Also moves tests to `./test` which makes it possible
for all test projects to share the same .editorconfig
files and similar.
2021-06-23 22:47:12 +02:00