Commit Graph
100 Commits
Author SHA1 Message Date
Patrik SvenssonandPatrik Svensson 5d4b2c88e5 Add extension method to use automatic application version 2024-04-25 20:28:13 +02:00
Patrik SvenssonandPatrik Svensson 3acc90e47c Make -v|--version opt-in
We added an automatic version option in 0.49. We did this with good
intentions, but forgot that people might already use --version
as an option for a root command.

This commit makes -v|--version completely opt-in.
2024-04-25 20:28:13 +02:00
Patrik SvenssonandPatrik Svensson 88515b7d7f Add Verify.Tool dotnet tool 2024-04-25 20:28:13 +02:00
Patrik Svensson c5e11626b5 Add blog post for 0.49 release 2024-04-23 15:18:52 +02:00
Patrik Svensson 2ead177404 Update social card to show .NET 8.0 2024-04-23 15:18:42 +02:00
Patrik SvenssonandPatrik Svensson 71f762f646 Add token representation to remaining arguments
Before, when adding parsed information to the IRemainingArguments.Parsed,
we used the name of the parsed option ('foo') instead of it's
representation ('--foo'). This commit fixes that.
2024-04-23 14:10:04 +02:00
Patrik SvenssonandPatrik Svensson 95bff47b85 Expose raw arguments on the command context 2024-04-20 22:17:31 +02:00
Patrik SvenssonandPatrik Svensson fde9ee04cf Automatically register command settings
Closes #428
2024-02-15 21:33:51 +01:00
Patrik SvenssonandPatrik Svensson e13410861d Update dependencies to latest version 2024-02-13 09:34:00 +01:00
Patrik SvenssonandPatrik Svensson b21e07ea94 Update dependencies
* Add support for C# 12
* Run all tests on all major .NET SDKs
* Only build on Ubuntu
* Do not build docs for pull requests
* Add Cédric Luthi, and Frank Ray to authors
* Drop netstandard2.0 for ImageSharp plugin
2024-01-31 20:51:49 +01:00
Patrik SvenssonandPatrik Svensson 7cf7e84dd8 Remove mandelbrot example due to conflicting license
Closes #1423
Closes #1424
2024-01-03 21:31:16 +01:00
Patrik SvenssonandPatrik Svensson cb52eb63ce Add blog post for 0.48 2023-11-22 22:13:48 +01:00
Patrik SvenssonandPatrik Svensson 7397169a27 Update Cake to 4.0.0 2023-11-20 13:14:40 +01:00
Patrik SvenssonandPatrik Svensson ffdb47d77f Build generator as part of build 2023-11-20 13:14:40 +01:00
Patrik SvenssonandPatrik Svensson 383bee0e3e Do not push packages to GitHub 2023-11-19 12:18:22 +01:00
Patrik SvenssonandPatrik Svensson 4d6541dd14 Add back net7.0 TFM for tests 2023-11-19 12:18:22 +01:00
Patrik SvenssonandPatrik Svensson b1e0896a0d Add net8.0 support 2023-11-14 22:24:53 +01:00
Patrik SvenssonandPatrik Svensson f223f6061c Add blog post for 0.46 release 2023-01-10 04:00:15 +01:00
Patrik SvenssonandPatrik Svensson eba2a8cc76 Add layout documentation 2023-01-10 00:17:11 +01:00
Patrik SvenssonandPatrik Svensson bc6ba26840 Fix title of JSON docs 2023-01-10 00:17:11 +01:00
Patrik SvenssonandPatrik Svensson 55c3f3b7a8 Figlet text should not pad on right side automatically 2022-11-15 12:36:49 +01:00
Patrik SvenssonandPatrik Svensson 02ff3fc910 Fix alignment bug 2022-11-15 12:36:49 +01:00
Patrik SvenssonandPatrik Svensson 9ce3b99cd6 Remove integration tests 2022-11-10 12:01:13 +01:00
Patrik SvenssonandPatrik Svensson a70cc90797 Fix issues with nullability and netstandard2.0 2022-11-10 12:01:13 +01:00
Patrik SvenssonandPatrik Svensson 7dce4af552 Add support for .NET 7.0 2022-11-10 12:01:13 +01:00
Patrik SvenssonandPatrik Svensson 82de4a55c4 Pin SDK due to bug in .NET 6.0.401
Restoring tools seems to fail due to an AbandonedMutexException.
Pinning the SDK to a previous version should work.
2022-10-13 14:35:57 +02:00
Patrik SvenssonandPatrik Svensson 7b23456d3e Add 'need triage' label to new issues 2022-10-04 22:38:52 +02:00
Patrik SvenssonandPatrik Svensson cbfcc37a46 Add new and transferred issues to project
When a new issue is created or an issue is transferred
from another project, we add the issue to the Spectre.Console project
(https://github.com/orgs/spectreconsole/projects/1).
2022-10-04 22:38:52 +02:00
Patrik SvenssonandPhil Scott bb013dcc52 Add blog post for 0.45 2022-09-10 12:06:32 -04:00
Patrik SvenssonandPatrik Svensson dc93edef15 Remove the 'net50' TFM
Also updates all dependencies to the latest version.

Closes #829
2022-07-02 11:18:34 +02:00
Patrik Svensson 45a051150f Fix for 'chore:' CI criteria 2022-07-01 12:42:24 +02:00
Patrik Svensson 47ef9a685e Do not run CI for commits starting with 'chore' 2022-07-01 12:36:48 +02:00
Patrik SvenssonandPatrik Svensson 1eeb32c704 Ignore the docs project 2022-06-30 14:24:03 +02:00
Patrik SvenssonandPatrik Svensson 5b2b4375a4 Update build script to package Spectre.Console.Cli 2022-05-15 00:09:52 +02:00
Patrik SvenssonandPatrik Svensson 70bbc24911 Update Cake to 2.2.0 2022-05-15 00:09:52 +02:00
Patrik SvenssonandPatrik Svensson 36ca22ffac Move Spectre.Console.Cli to it's own package 2022-05-15 00:09:52 +02:00
Patrik Svensson da1c471c18 Give GH Actions jobs a more suitable name 2022-04-15 10:44:14 +02:00
Patrik Svensson b6b963c03c Update GPR dependency 2022-04-15 10:43:52 +02:00
Patrik Svensson 7e1fb43f21 Install .NET SDK 6.0.101 2022-04-15 10:28:49 +02:00
Patrik SvenssonandPatrik Svensson 90de1847d8 Add blog post for 0.44 2022-03-27 22:46:17 +02:00
Patrik SvenssonandPhil Scott eb4a7d3bf4 Add support for alignment 2022-02-23 09:06:51 -05:00
Patrik SvenssonandPhil Scott 5e41a2f505 Add support for styling segments 2022-02-23 09:06:51 -05:00
Patrik SvenssonandPhil Scott 66fc949e2a Initial work on TextPath widget 2022-02-20 23:26:04 -05:00
Patrik Svensson bec3315d91 skip-ci: Fix typo 2022-02-16 01:40:47 +01:00
Patrik Svensson d465d93a9b Add Netlify badge 2022-02-16 00:44:52 +01:00
Patrik Svensson 782a99d726 Add Netlify attribution to footer 2022-02-16 00:36:01 +01:00
Patrik Svensson b6be693007 Update copyright 2022-02-16 00:35:10 +01:00
Patrik Svensson f9a85e017a Only build docs once :) 2022-02-15 18:02:25 +01:00
Patrik SvenssonandPhil Scott eb6a9d8d04 Add .git-blame-ignore-revs 2021-12-22 08:51:17 -05:00
Patrik SvenssonandPhil Scott ec1188b837 Use file scoped namespace declarations 2021-12-22 08:51:17 -05:00
Patrik SvenssonandPhil Scott 1dbaf50935 Add release notes for 0.43.0 2021-12-22 08:50:31 -05:00
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