Skip to content

Commit

Permalink
new links
Browse files Browse the repository at this point in the history
  • Loading branch information
ninmonkey committed Jan 12, 2024
1 parent 5456f84 commit e349304
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Pwsh/Modules/Using-ConsoleGuiTools-Show-ObjectTree.ps1
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
using namespace System.Collections.Generic

class Node {
[string]$Name = 'node'
[string]$Title = 'node'
[List[Object]]$Children = @()
}

$tree = @(
[Node]@{
Name = 'Root'
Title = 'Root'
Children = @(
[Node]@{
Name = 'style'
Title = 'style'
Children = [Node]@{
Name = 'SomeFont'
Title = 'SomeFont'
}
}
[Node]@{
Name = 'body'
Title = 'body'
Children = @(
[Node]@{
Name = 'flex-item'
Title = 'flex-item'
}
)
}
)
}
)

# json used
$tree | json -Depth 99 -Compress

$tree | Show-ObjectTree

0 comments on commit e349304

Please sign in to comment.