diff --git a/PwshSpectreConsole.Docs/astro.config.mjs b/PwshSpectreConsole.Docs/astro.config.mjs index 4e30f39c..d969fe1f 100644 --- a/PwshSpectreConsole.Docs/astro.config.mjs +++ b/PwshSpectreConsole.Docs/astro.config.mjs @@ -33,6 +33,10 @@ export default defineConfig({ label: "Getting Started", link: "/guides/get-started/", }, + { + label: "Upgrading to 2.0", + link: "/guides/upgrading-to-2-0/", + }, { label: "FAQs", link: "/guides/faqs/", diff --git a/PwshSpectreConsole.Docs/src/content/docs/guides/faqs.md b/PwshSpectreConsole.Docs/src/content/docs/guides/faqs.md index 2722651e..1f59b421 100644 --- a/PwshSpectreConsole.Docs/src/content/docs/guides/faqs.md +++ b/PwshSpectreConsole.Docs/src/content/docs/guides/faqs.md @@ -1,13 +1,13 @@ ---- -title: Frequently Asked Questions -description: What is this? ---- - -1. **What is Spectre Console?** -Spectre Console is a .NET library to help people create really, really, ridiculously good-looking console applications in C# and other languages. See [https://spectreconsole.net/](https://spectreconsole.net/) for the original project. - -2. **Why build PwshSpectreConsole?** -The original library uses a lot of C# features that are not easily accessible in PowerShell so PwshSpectreConsole wraps the library to make it easier to use for the basic use-cases. I also like to write a lot of PowerShell and find some of the PowerShell core library options a bit boring for my scripts. - -3. **Why are there features missing?** -This is a starting point, it covers the basics of the library and the most common use-cases. If you want to do something more advanced, you can use the [Spectre.Console](https://spectreconsole.net/) library directly for which there are lots of examples in the source code [for this repository on Github](https://github.com/ShaunLawrie/PwshSpectreConsole). +--- +title: Frequently Asked Questions +description: What is this? +--- + +1. **What is Spectre Console?** +Spectre Console is a .NET library to help people create really, really, ridiculously good-looking console applications in C# and other languages. See [https://spectreconsole.net/](https://spectreconsole.net/) for the original project. + +2. **Why build PwshSpectreConsole?** +The original library uses a lot of C# features that are not easily accessible in PowerShell so PwshSpectreConsole wraps the library to make it easier to use for the basic use-cases. I also like to write a lot of PowerShell and find some of the PowerShell core library options a bit boring for my scripts. + +3. **Why is this not written in C#?** +I wanted to see if I could do it in PowerShell and I think it's a fun project. I also wanted to see if I could make it easier to use for PowerShell users to contribute if they're not familiar with C#. diff --git a/PwshSpectreConsole.Tests/@snapshots/Format-SpectreJson.snapshot.txt b/PwshSpectreConsole.Tests/@snapshots/Format-SpectreJson.snapshot.txt index 1bbaca71..d11208ee 100644 --- a/PwshSpectreConsole.Tests/@snapshots/Format-SpectreJson.snapshot.txt +++ b/PwshSpectreConsole.Tests/@snapshots/Format-SpectreJson.snapshot.txt @@ -1,20 +1,20 @@ -{ +{ "Name": "John", - "Age": 25, + "Age": 25, "City": "New York", "IsEmployed": true, - "Salary": 10, + "Salary": 10, "Hobbies": [ "Reading", "Swimming" ], - "Address": { + "Address": { "Street": "123 Main St", "City": "New York", - "Deep": { + "Deep": { "Nested": "System.Collections.Hashtable" - }, + }, "State": "NY", "Zip": "10001" - } -} \ No newline at end of file + } +} \ No newline at end of file