Skip to content

Commit 0d9f5c6

Browse files
feat: Get-Shape aliases ( Fixes #4, Fixes #16 )
1 parent 6e43502 commit 0d9f5c6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Commands/Get-Shape.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,13 @@ function Get-Shape {
8585
[Alias('Shape',
8686
'circle','ellipse',
8787
'inset','rect',
88-
'polygon','path2d','xywh',
88+
'polygon',
89+
# Not aliasing to `path` due to potential confusion
90+
'path2d',
91+
'xywh',
8992
'css.circle', 'css.ellipse',
9093
'css.inset', 'css.rect',
91-
'css.polygon', 'css.path2d', 'css.xywh'
94+
'css.polygon', 'css.path','css.path2d', 'css.xywh'
9295
)]
9396
param()
9497

Shape.psd1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,15 @@ FunctionsToExport = 'Get-Shape'
7979

8080
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
8181
AliasesToExport = 'Shape', 'circle','ellipse',
82+
'circle','ellipse',
8283
'inset','rect',
83-
'polygon','path2d','xywh',
84+
'polygon',
85+
# Not aliasing to `path` due to potential confusion.
86+
'path2d',
87+
'xywh',
8488
'css.circle', 'css.ellipse',
8589
'css.inset', 'css.rect',
86-
'css.polygon', 'css.path2d', 'css.xywh'
90+
'css.polygon', 'css.path','css.path2d', 'css.xywh'
8791

8892
# DSC resources to export from this module
8993
# DscResourcesToExport = @()

0 commit comments

Comments
 (0)