-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf58911
commit 10c705d
Showing
3 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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#. |
16 changes: 8 additions & 8 deletions
16
PwshSpectreConsole.Tests/@snapshots/Format-SpectreJson.snapshot.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
[38;5;9m{[0m | ||
[38;5;51m{[0m | ||
[38;5;12m"Name":[0m [38;5;15m"John"[0m[38;5;12m,[0m | ||
[38;5;12m"Age":[0m [38;5;9m25[0m[38;5;12m,[0m | ||
[38;5;12m"Age":[0m [38;5;51m25[0m[38;5;12m,[0m | ||
[38;5;12m"City":[0m [38;5;15m"New York"[0m[38;5;12m,[0m | ||
[38;5;12m"IsEmployed":[0m [38;5;153mtrue[0m[38;5;12m,[0m | ||
[38;5;12m"Salary":[0m [38;5;9m10[0m[38;5;12m,[0m | ||
[38;5;12m"Salary":[0m [38;5;51m10[0m[38;5;12m,[0m | ||
[38;5;12m"Hobbies":[0m [38;5;214m[[0m | ||
[38;5;15m"Reading"[0m[38;5;12m,[0m | ||
[38;5;15m"Swimming"[0m | ||
[38;5;214m][0m[38;5;12m,[0m | ||
[38;5;12m"Address":[0m [38;5;9m{[0m | ||
[38;5;12m"Address":[0m [38;5;51m{[0m | ||
[38;5;12m"Street":[0m [38;5;15m"123 Main St"[0m[38;5;12m,[0m | ||
[38;5;12m"City":[0m [38;5;15m"New York"[0m[38;5;12m,[0m | ||
[38;5;12m"Deep":[0m [38;5;9m{[0m | ||
[38;5;12m"Deep":[0m [38;5;51m{[0m | ||
[38;5;12m"Nested":[0m [38;5;15m"System.Collections.Hashtable"[0m | ||
[38;5;9m}[0m[38;5;12m,[0m | ||
[38;5;51m}[0m[38;5;12m,[0m | ||
[38;5;12m"State":[0m [38;5;15m"NY"[0m[38;5;12m,[0m | ||
[38;5;12m"Zip":[0m [38;5;15m"10001"[0m | ||
[38;5;9m}[0m | ||
[38;5;9m}[0m | ||
[38;5;51m}[0m | ||
[38;5;51m}[0m |