diff --git a/Examples/FormatResults/GetAsMarkdownTable.ps1 b/Examples/FormatResults/GetAsMarkdownTable.ps1 new file mode 100644 index 0000000..3a0c584 --- /dev/null +++ b/Examples/FormatResults/GetAsMarkdownTable.ps1 @@ -0,0 +1,10 @@ +param( + [Alias('FullName')] + [String[]]$Path +) + +if ($PSVersionTable.PSVersion.Major -gt 5 -and -not (Get-Command Format-Markdown -ErrorAction SilentlyContinue)) { + throw "This requires EZOut. Install-Module EZOut -AllowClobber -Scope CurrentUser" +} + +Import-Excel $Path | Format-Markdown \ No newline at end of file diff --git a/Examples/FormatResults/GetAsYaml.ps1 b/Examples/FormatResults/GetAsYaml.ps1 new file mode 100644 index 0000000..162f1c5 --- /dev/null +++ b/Examples/FormatResults/GetAsYaml.ps1 @@ -0,0 +1,10 @@ +param( + [Alias('FullName')] + [String[]]$Path +) + +if ($PSVersionTable.PSVersion.Major -gt 5 -and -not (Get-Command Format-YAML -ErrorAction SilentlyContinue)) { + throw "This requires EZOut. Install-Module EZOut -AllowClobber -Scope CurrentUser" +} + +Import-Excel $Path | Format-YAML \ No newline at end of file diff --git a/Examples/FormatResults/Sample.csv b/Examples/FormatResults/Sample.csv new file mode 100644 index 0000000..37e40b8 --- /dev/null +++ b/Examples/FormatResults/Sample.csv @@ -0,0 +1,11 @@ +"OrderId","Category","Sales","Quantity","Discount" +"1","Cosmetics","744.01","7","0.7" +"2","Grocery","349.13","25","0.3" +"3","Apparels","535.11","88","0.2" +"4","Electronics","524.69","60","0.1" +"5","Electronics","439.1","41","0" +"6","Apparels","56.84","54","0.8" +"7","Electronics","326.66","97","0.7" +"8","Cosmetics","17.25","74","0.6" +"9","Grocery","199.96","39","0.4" +"10","Grocery","731.77","20","0.3" diff --git a/Examples/FormatResults/Sample.xlsx b/Examples/FormatResults/Sample.xlsx new file mode 100644 index 0000000..ecb09c1 Binary files /dev/null and b/Examples/FormatResults/Sample.xlsx differ