Commit Graph
100 Commits
Author SHA1 Message Date
Patrik Svensson 19ff48f4b8 Clean up .NET SDK installation 2021-12-15 22:54:27 +01:00
Patrik Svensson 8fcd2e59d6 Install .NET 5 as part of build 2021-12-15 22:47:05 +01:00
Patrik Svensson 8ce40bac3c Fix documentation build 2021-12-15 22:43:03 +01:00
Patrik SvenssonandPhil Scott fd4b96944e Add support for alternate screen buffers
Closes #250
2021-11-30 12:13:14 -05:00
Patrik SvenssonandPhil Scott 225305f90e Update examples to net6.0
Closes #604
2021-11-23 22:30:45 -05:00
Patrik SvenssonandPhil Scott e86f9d3c5a Allow color numbers in markup expressions
Closes #614
2021-11-09 09:32:50 -05:00
Patrik Svensson b738187b28 Fix publish workflow error 2021-10-30 01:52:25 +02:00
Patrik SvenssonandPhil Scott 35d2750b68 Internalizes the WcWidth package
This way, there is no need to download the WcWidth package,
and it also becomes easier to debug issues related to
Unicode cell widths.
2021-10-18 15:09:54 -04:00
Patrik Svensson e8e92e7f44 Remove path criteria for publish workflow 2021-10-05 17:57:25 +02:00
Patrik Svensson 3718502eee Update workflow 2021-10-05 17:55:08 +02:00
Patrik Svensson 39cfc7a62f Allow workflows to run for workflow changes 2021-10-05 17:54:02 +02:00
Patrik Svensson 2e90ef28e4 Allow workflows to run for test and example changes 2021-10-05 17:52:30 +02:00
Patrik SvenssonandPhil Scott 2a3763cdc7 Prove that remaining args works in strict mode
Closes #496
2021-10-05 09:34:08 -04:00
Patrik SvenssonandPhil Scott e0395dfa2b Add AnsiConsole.Write method
This commit also obsoletes the `AnsiConsole.Render` method.

Closes #576
2021-10-05 09:33:33 -04:00
Patrik SvenssonandPatrik Svensson b058c54f3c Disable GH Action workflow for docs 2021-09-23 23:26:31 +02:00
Patrik SvenssonandPatrik Svensson 8cfe06e77a Expose extension method that gets the cell width of text 2021-09-18 23:20:28 +02:00
Patrik SvenssonandPatrik Svensson 48d49d6e18 Add extension method to get the cell width of a character 2021-09-18 23:20:28 +02:00
Patrik SvenssonandPatrik Svensson d96817dc9c Do not share semaphore between consoles
Closes #494
2021-08-14 23:43:09 +02:00
Patrik SvenssonandPatrik Svensson e169df6303 Add support for manipulating individual table rows
Closes #500
2021-08-14 23:35:07 +02:00
Patrik Svensson 57731c0d55 Add release notes for version 0.41 2021-07-19 23:12:38 +02:00
Patrik SvenssonandPhil Scott 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
Patrik SvenssonandPhil Scott 5f97f2300c Support cancellation of prompts
Closes #417
2021-07-11 23:10:17 -04:00
Patrik SvenssonandPhil Scott 884cb8ddd4 Install correct .NET Core SDK 2021-07-11 22:59:02 -04:00
Patrik SvenssonandPhil Scott 314e50b531 Move analyzer to own solution 2021-07-11 22:59:02 -04:00
Patrik SvenssonandPhil Scott d9f06413d0 Remove examples from main solution 2021-07-11 22:59:02 -04:00
Patrik SvenssonandPhil Scott 6e2ca8449e Add solution for examples 2021-07-11 22:59:02 -04:00
Patrik SvenssonandPhil Scott 58eff30787 LineTreeGuide should not fall back to ASCII
If the user's environment didn't support unicode, we used
to fall back to using the AsciiTreeGuide if LineTreeGuide
was being used (which it is by default). This commit removes
that fallback since the characters used in LineTreeGuide is
covered by extended ASCII, which SHOULD be fine in almost all
scenarios.

Closes #324
2021-07-10 18:01:17 -04:00
Patrik SvenssonandPatrik Svensson aa59f6cd55 Update .NET Core SDK to 5.0.301 2021-07-05 09:15:54 +02:00
Patrik SvenssonandPatrik 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 SvenssonandPhil Scott 865552c3f2 Add support for selecting prompt items
Closes #447
2021-06-28 08:41:24 -04:00
Patrik SvenssonandPhil Scott a186fd94ac Preserve whitespace trivia when applying code fix 2021-06-23 23:04:37 -04: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
Patrik Svensson 397860e42e Revert PR #436
Using Statiq processes for tailwind commands

This reverts commit adb600c430.
This reverts commit ab83e41051.
2021-05-26 13:41:49 +02:00
Patrik SvenssonandPhil Scott 450d87f5d3 Add support for fake input in asciicast recordings
* Fixes a bug with `SelectionPrompt` and page size.
* Allow `IAnsiConsoleInput` to return `null`.
2021-05-23 22:22:44 -04:00
Patrik SvenssonandPatrik Svensson 91a0be86a3 Remove empty solution folder 2021-05-21 11:14:18 +02:00
Patrik SvenssonandPatrik Svensson ab09a30bc7 Update dotnet example 2021-05-21 11:14:18 +02:00
Patrik SvenssonandPatrik Svensson a2ed88e2eb Remove some Star Wars movies
Closes #424
2021-05-21 11:14:18 +02:00
Patrik SvenssonandPhil Scott 3dea412785 Add live display support
This commit also adds functionality to LiveRenderable that should
fix some problems related to vertical overflow.

Closes #316
Closes #415
2021-05-20 19:41:10 -04:00
Patrik SvenssonandPhil Scott 315a52f3e9 Add support for hierarchical list prompts
Closes #412
2021-05-18 11:34:16 -04:00
Patrik SvenssonandPhil Scott 6549436356 Fix line break regression
In commit d1d94cd, we accidentally introduced a regression
since conhost requires all line breaks to be `\r\n`.
2021-05-10 17:42:49 -04:00
Patrik SvenssonandPhil Scott 4d88a6ab69 Play nice with type converters 2021-05-09 08:26:08 -05:00
Patrik SvenssonandPhil Scott 1dd1945297 Add parameter value provider support
Adds support for parameter value providers which makes it
possible to set custom values for parameters.
2021-05-09 08:26:08 -05:00
Patrik SvenssonandPatrik Svensson d1d94cdebe Add Length and Lines properties to Paragraph
* Adds Length and Lines to `Paragraph`, `Markup` and `Text`.
* Do not use Environment.NewLine
2021-05-03 17:24:44 +02:00
Patrik SvenssonandPhil Scott e48ae9600a Revert shrinking of example.png 2021-04-29 17:17:02 -05:00
Patrik SvenssonandPhil Scott cba02070f9 Add method to get VT/ANSI codes for renderables 2021-04-23 13:09:44 -04:00
Patrik SvenssonandPhil Scott 3463dde543 Add method to write VT/ANSI control codes
Adds a new extension method IAnsiConsole.WriteAnsi that writes
VT/ANSI control codes to the console. If VT/ANSI control codes are
not supported, nothing will be written.
2021-04-22 22:16:10 -04:00
Patrik SvenssonandPhil Scott 04efd1719c Add new test framework for consoles 2021-04-19 20:39:45 -04:00
Patrik SvenssonandPhil Scott 3e2eea730b Add output abstraction and reorganize profile
* Moves ColorSystem from Profile to Capabilities
* Renames Tty to IsTerminal
* Adds IAnsiConsoleOutput to make output more flexible

Closes #343
Closes #359
Closes #369
2021-04-13 21:39:54 -04:00
Patrik SvenssonandPhil Scott 3545e0f6b5 Add example infrastructure
* Add "Shared" projects for all examples
* Update "Colors" example with better TrueColor demo
* Use same namespace for all examples
2021-04-11 22:03:13 -04:00
Patrik SvenssonandPhil Scott 2fe2bb3c32 Add parameterless Clear method for IAnsiConsole
Closes #338
2021-04-11 22:01:14 -04:00
Patrik SvenssonandPhil Scott 1fc6f22ea9 Remove Style.Clone method
Closes #362
2021-04-11 21:58:58 -04:00
Patrik SvenssonandPatrik Svensson 6a5c507936 Rename 'Demo' example to 'Showcase' 2021-04-09 22:01:05 +02:00
Patrik SvenssonandPhil Scott efa3d3b130 Add NuGet.Config 2021-04-09 08:45:30 -04:00
Patrik SvenssonandPhil Scott 6007fcaafc Update to .NET SDK 5.0.202 2021-04-09 07:48:10 -04:00
Patrik SvenssonandPhil Scott 13ac38ed04 Fix color system mapping bug
Closes #342
2021-04-08 12:18:54 -04:00
Patrik SvenssonandPhil Scott ca036f6543 Add demo example 2021-04-07 20:32:07 -04:00
Patrik SvenssonandPhil Scott fe5096dceb Fixes color system detection bug
If an application runs on Windows 10.0.15063 or above, on a
runtime prior to net5.0, the color system detection will fail
and fall back to 8-bit color support.

The reason for this is because the behavior of
Environment.OSVersion.Version differs between runtimes. Unless you're
running on net5.0, both the major and build version components will
not reflect those in the actual Windows version.
2021-04-07 11:15:45 -04:00
Patrik Svensson dafbfe63ba Update link to docs site 2021-04-05 17:54:32 +02:00
Patrik Svensson a2ab522516 Add CNAME 2021-04-05 17:45:29 +02:00
Patrik Svensson 8778ab1739 Set new host for docs 2021-04-05 17:41:18 +02:00
Patrik Svensson 693e1fa170 Update links, references and copyright 2021-04-05 16:59:09 +02:00
Patrik Svensson 4b37a4708f Update documentation 2021-04-05 16:48:02 +02:00
Patrik SvenssonandPhil Scott 6f16081f42 Add support for indeterminate progress
This commit also changes the behavior of ProgressContext.IsFinished.
Only tasks that have been started will be taken into consideration,
and not indeterminate tasks.

Closes #329
Closes #331
2021-04-03 09:42:49 -04:00
Patrik SvenssonandPhil Scott 1ed7e65fcb Make VT-100 sequences easier to understand 2021-03-28 12:51:19 -04:00
Patrik SvenssonandPhil Scott 20650f1e7e Change IAnsiConsole to render IRenderable
This makes it possible for encoders to output better representation
of the actual objects instead of working with chopped up segments.

* IAnsiConsole.Write now takes an IRenderable instead of segments
* Calculating cell width does no longer require a render context
* Removed RenderContext.LegacyConsole
* Removed RenderContext.Encoding
* Added Capabilities.Unicode
2021-03-28 09:06:06 -04:00
Patrik SvenssonandPhil Scott 9c46c21e27 Fix argument order
Closes #319
2021-03-24 18:58:17 -04:00
Patrik SvenssonandPhil Scott 7f6f2437b1 Add support for exclusive mode 2021-03-15 13:14:40 -04:00
Patrik SvenssonandPhil Scott c2bab0ebf8 Allow custom instructions for prompts
Closes #229
2021-03-14 21:27:44 -04:00
Patrik SvenssonandPhil Scott 9502aaf2b9 Allow markup in selection prompts
Closes #221
2021-03-14 21:27:44 -04:00
Patrik SvenssonandPhil Scott 57a8e6ccc1 Support Home, End, PgUp, and PgDown in prompts
Closes #296
2021-03-14 21:27:44 -04:00
Patrik SvenssonandPhil Scott 8c099a0038 Add Elmah.io as sponsor 2021-03-14 21:17:56 -04:00
Patrik SvenssonandPhil Scott 29e6e34f83 Support setting the static console 2021-03-01 15:22:35 -05:00
Patrik Svensson 17ee8990f4 Update example image 2021-02-15 13:01:30 +01:00
Patrik SvenssonandPatrik Svensson 102e2dc38d Allow formatting breakdown charts with lambda expr
Relates to #252
2021-02-13 17:09:51 +01:00
Patrik SvenssonandPatrik Svensson 28e9c14de4 Register the console lazily in CLI type registrar
This should fix a strange bug we're seeing in Cake on macOS.
2021-02-12 02:04:59 +01:00
Patrik Svensson fd217ffc83 Update sponsor text 2021-02-11 23:22:43 +01:00
Patrik Svensson 95ec04df40 Add sponsor information 2021-02-11 23:20:11 +01:00
Patrik SvenssonandPatrik Svensson 705cf745ea Add formatting support for breakdown chart values
Closes #252
2021-02-05 11:53:55 +01:00
Patrik SvenssonandPatrik Svensson b64e016e8c Add breakdown chart support
This also cleans up the bar chart code slightly and fixes
some minor bugs that were detected in related code.

Closes #244
2021-02-01 01:03:39 +01:00
Patrik SvenssonandPatrik Svensson 58400fe74e Fix code generation
Previous changes introduced some bugs to the
code generation scripts and templates, which
now have been fixed.
2021-01-29 21:46:08 +01:00
Patrik SvenssonandPatrik Svensson e20f6284f9 Clean up profile enrichment 2021-01-29 20:16:52 +01:00
Patrik SvenssonandPatrik Svensson 31a5e17a45 Remove InteractivityDetector 2021-01-19 18:12:15 +01:00
Patrik SvenssonandPatrik Svensson f06dc7e7d8 GitHub actions should use default width (for now) 2021-01-19 18:12:15 +01:00
Patrik SvenssonandPatrik Svensson a23bec4082 Add profile support
Closes #231
2021-01-19 17:53:03 +01:00
Patrik SvenssonandPatrik Svensson 913a7b1e37 Add support for default choice in selection prompt
Closes #234
2021-01-15 17:05:11 +01:00
Patrik SvenssonandPatrik Svensson 07db28bb6f Add enhancements to progress widget
* Adds TransferSpeedColumn
* Adds DownloadedColumn
* Adds ElapsedTimeColumn
* Minor enhancements to existing columns
2021-01-12 14:10:07 +01:00
Patrik SvenssonandPatrik Svensson a977fdadff Fix tree node collection type 2021-01-10 16:59:40 +01:00
Patrik SvenssonandPatrik Svensson 8261b25e5c Fix tree rendering
Fixes some tree rendering problems where lines were not properly drawn
at some levels during some circumstances.

* Change the API back to only allow one root.
* Now uses a stack based approach to rendering instead of recursion.
* Removes the need for measuring the whole tree in advance.
  Leave this up to each child to render.
2021-01-10 15:55:11 +01:00
Patrik SvenssonandPatrik Svensson 0e0f4b4220 Add interactive prompts for selecting values
* Adds SelectionPrompt
* Adds MultiSelectionPrompt

Closes #210
2021-01-09 09:37:28 +01:00
Patrik SvenssonandPatrik Svensson 3a593857c8 Add progress and status result overloads 2021-01-06 09:54:45 +01:00
Patrik SvenssonandPatrik Svensson 11e192e750 Update Canvas tests 2021-01-06 09:54:45 +01:00
Patrik SvenssonandPatrik Svensson 0796bad598 Add contributing guidelines 2021-01-05 14:38:29 +01:00
Patrik SvenssonandPatrik Svensson 1bb0b9ccc6 Fix expectation structure 2021-01-05 11:09:35 +01:00
Patrik SvenssonandPatrik Svensson 1f211d3e1f Add convenience methods for tree nodes 2021-01-03 23:28:55 +01:00
Patrik SvenssonandPatrik Svensson 87e6b42409 Add tree example 2021-01-03 23:28:55 +01:00
Patrik SvenssonandPatrik Svensson 1aa958ced3 Add support for multiple tree roots 2021-01-03 23:28:55 +01:00
Patrik SvenssonandPatrik Svensson 4bfb24bfcb Streamline tree API a bit 2021-01-03 23:28:55 +01:00
Patrik SvenssonandPatrik Svensson 179e243214 Clean up table rendering a bit 2021-01-02 09:33:22 +01:00
Patrik SvenssonandPatrik Svensson c6210f75ca Prevent endless loop in tokenization
Closes #198
2021-01-01 23:01:51 +01:00
Patrik SvenssonandPatrik Svensson b81739567b Fix argument order in help
Closes #188
2021-01-01 13:43:28 +01:00