Commit Graph
166 Commits
Author SHA1 Message Date
Patrik SvenssonandPatrik Svensson b1e0896a0d Add net8.0 support 2023-11-14 22:24:53 +01:00
Nils AndresenandGitHub f7befacd79 (#644) Specified settings for the argument vector (#1301) 2023-09-13 09:06:25 +02:00
Nils AndresenandGitHub 9c86391fb6 (#1297) change all SetErrorHandler to SetExceptionHandler (#1298) 2023-09-12 13:57:02 +02:00
Nils AndresenandGitHub a3dcb31729 Update ColumnsSample to showcase nicer data (#1295)
Also, I switched the base width of the AsciiCast back
to 82 (from 120) so newly created casts are no longer
overflowing the display with on the pages.

Re-created the Panel and BreakdownChart casts, as
they were currently overflowing due to the 120 chars
width of the cast.
2023-09-12 12:58:18 +02:00
Nils Andresen c64797d681 (#1279) added the missing columns-cast 2023-09-11 23:26:54 +02:00
Frank RayandGitHub 131b37fff8 Allow custom help providers (#1259)
Allow custom help providers

* Version option will show in help even with a default command

* Reserve `-v` and `--version` as special Spectre.Console command line arguments (nb. breaking change for Spectre.Console users who have a default command with a settings class that uses either of these switches).

* Help writer correctly determines if trailing commands exist and whether to display them as optional or mandatory in the usage statement.

* Ability to control the number of indirect commands to display in the help text when the command itself doesn't have any examples of its own. Defaults to 5 (for backward compatibility) but can be set to any integer or zero to disable completely.

* Significant increase in unit test coverage for the help writer.

* Minor grammatical improvements to website documentation.
2023-09-08 09:51:33 +02:00
Tomasz PrasołekandPatrik Svensson 813a53cdfa Fix Rule widget docs 2023-07-16 12:29:04 +02:00
Frank RayandGitHub 4c0178cf9a Merge branch 'main' into Blog-post-for-0.47.0 2023-05-19 16:50:48 +01:00
Frank Ray 296bc61837 Updated links and github usernames to markdown url format so they render as native html links 2023-05-19 16:48:48 +01:00
Frank RayandPatrik Svensson 766ccb1f1b Minor grammatical update 2023-05-19 16:40:57 +02:00
Frank RayandPatrik Svensson f7314dc2e8 Blog post for 0.47.0 2023-05-19 16:40:57 +02:00
Frank Ray f453890d13 Minor grammatical update 2023-05-19 12:26:35 +01:00
Frank Ray 2c8f459806 Blog post for 0.47.0 2023-05-19 12:22:28 +01:00
Andrii RublovandGitHub 404b052a5f Add ability to pass example args using params syntax (#1166) 2023-05-12 12:08:42 +01:00
Phillip HaydonandGitHub 5843a4545e Fix coconut spelling 2023-04-24 14:37:06 +08:00
Will Baldoumas 62b30d6072 Alignment => Justification Docs Fixes 2023-01-25 17:45:30 -08: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 SvenssonandGitHub 54be64ec84 Add JSON text renderer (#1086)
* Add JsonText widget to render highlighted JSON

Closes #1051
2022-12-31 18:17:15 +00:00
Brandon WoodandPatrik Svensson a9b97fa4dc fixed panel/table copypasta 2022-11-16 00:07:49 +01:00
Patrik SvenssonandPatrik Svensson 7dce4af552 Add support for .NET 7.0 2022-11-10 12:01:13 +01:00
SetenayandGitHub 995ef10b8b Created a Columns widget documentation (#1044) 2022-11-04 09:21:18 +01:00
Elisha AguileraandGitHub 4ea64ccb9c Added documentation guide for the Padder Widget (#1046) 2022-11-04 09:20:38 +01:00
Elisha AguileraandGitHub a755cc5d9c Added documentation guide for Grid Widget (#1043) 2022-11-02 12:59:41 +01:00
Elisha AguileraandPatrik Svensson 2a493cfee9 Added documentation for Rows widget 2022-11-01 09:48:38 +01:00
Steve SmithandPatrik Svensson 9df6ed213c Minor typo fixes
Hope this is helpful, cheers!
2022-10-19 20:13:07 +02:00
PatrickandPatrik Svensson 5f1121e8e1 Create panel documentation 2022-10-15 06:44:48 +02:00
Benjamin MichaelisandGitHub db095217b7 Add documentation for Breakdown Chart (#1000)
* Begin breakdown chart documentation
* Fix generator build failure
* Add in breakdown chart graphics
* Add breakdown chart documentation and move cast files
2022-10-06 22:02:25 +02:00
Johan LindforsandPatrik Svensson 8b5836f4e4 Adding value: a single semi-colon! 2022-10-01 15:38:55 +02:00
Patrik SvenssonandGitHub d339442df8 Join .NET Foundation (#978) 2022-09-27 08:36:07 +02:00
Gary McDougallandGitHub eb02c3d534 Custom mask for secret (#970)
* Masking Character added, not yet used.

* Setting the masking character can be chained with other extensions.

* Added string extension for masking, and replaced hardcoded asterisks.

* Check if mask is null first.

* Fixed Typo in previous test and added new test for custom masks.

* Added tests for masking with null character

* Added docs and example.

* Adjusted extensions so that Mask is integrated into Secret extension. Updated Exampls and Tests accordingly
2022-09-26 20:34:41 +02:00
Phil ScottandPatrik Svensson 79913ab238 being explicit about date formats for blog posts 2022-09-12 04:41:22 +02:00
Phil ScottandPatrik Svensson 9a7ac7b5b2 updating social card image to .NET 6 2022-09-12 04:41:22 +02:00
Gary McDougallandPhil Scott 9cbfda9e4a Added details for using links within markup. 2022-09-10 21:51:03 -04:00
Patrik SvenssonandPhil Scott bb013dcc52 Add blog post for 0.45 2022-09-10 12:06:32 -04:00
lonix1andGitHub af9f5ea97d [docs] fixed typo (#956) 2022-09-09 13:33:06 +02: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
Cédric LuthiandPatrik Svensson c32decfa55 Fix the "Escaping Interpolated Strings" documentation
* `MarkupLineInterpolated` instead of `MarkupInterpolated`
* Use an actual interpolated string in sample code to make it valid
2022-06-30 13:55:52 +02:00
ivmlandPatrik Svensson 564c7b8f4e fix: API reference pages for Spectre.Console.Cli
This commit fixes #833.

`Spectre.Console.Cli` was moved into its own project, and the path to the new project was not added to the list of source files when building the documentation.
2022-05-17 17:46:50 +02:00
47fde1875b chore: Update dependency MinVer to v2.5.0 (#803)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 23:47:08 +02:00
Patrik SvenssonandGitHub f614032c82 Fix documentation workflow (#799)
Only publish documentation when we publish artifacts.
2022-04-05 08:40:30 +02:00
Drew NoakesandGitHub edbe9d6ebc Change section heading (#781)
This appears to have been copy/pasted from progress.md, which has a similar structure.
2022-03-31 14:18:24 +02:00
Patrik SvenssonandPatrik Svensson 90de1847d8 Add blog post for 0.44 2022-03-27 22:46:17 +02:00
1d8154f9b0 Introduce MarkupInterpolated and MarkupLineInterpolated extensions (#761)
* Introduce MarkupInterpolated and MarkupLineInterpolated extensions

These new methods enable easily writing markup with a nice and intuitive syntax without having to worry about escaping the markup.

```csharp
string input = args[0];
string output = Process(input);
AnsiConsole.MarkupLineInterpolated($"[blue]{input}[/] -> [green]{output}[/]");

```

The `Interpolated` suffix was inspired by the Entity Framework Core [FromSqlInterpolated][1] method.

[1]: https://docs.microsoft.com/en-us/ef/core/querying/raw-sql#passing-parameters

* Fixing whitespace to match file scoped namespaces

* Adding FromInterpolated helper to Markup widget

Allows automatic handling of interpolated strings to be used on the Markup widget. This would be helpful for people working with Tables and the Tree control who would not be using the MarkupInterpolated methods.

* Documentation for markup interpolated methods.

Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
2022-03-22 22:34:25 +01:00
Phil ScottandPatrik Svensson 1f2629e2e1 Adding a short template file for new documentation. 2022-03-05 22:51:01 +01:00
Patrik SvenssonandGitHub a6364e066b Fix path and description for TextPath docs (#758) 2022-03-02 10:24:33 +01:00
Patrik SvenssonandGitHub fbe1d0b6f2 Add documentation for TextPath widget (#757) 2022-03-01 20:56:58 +01:00
Phil ScottandPatrik Svensson 899dd20b65 Optimizing build
* Upgrades Statiq.Web to which contains analyzer perf improvements
* Dropping script front matter when not needed from blog archives
* Trimming down the number of files tailwind examines when building the css file to only a subset of the docs.
* Updates Playwright to latest version
* Updates tailwind and asciienma to latest
* Removes npm packages that are no longer required
2022-02-22 08:56:27 +01:00
Andrew RublyovandPhil Scott 8ae3d258e4 Add another missing nullables 2022-02-20 23:57:06 -05:00