< Back

New-InvertedTrianglePSS

Wed Jan 15, 2020 4:35 am

NAME New-InvertedTrianglePSS



SYNOPSIS

A thought experiment





SYNTAX

New-InvertedTrianglePSS [[-Project] <String>] [[-Component] <String>] [<CommonParameters>]





DESCRIPTION

This module contains PowerShell functions to create and demonstrate the Inverted Triangle PSS pattern. Running the

resulting project requires Mike Shepard's WPFBot3000 Domain-Specific Language





PARAMETERS

-Project <String>

The name of the project to scaffold



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Component <String>

The name of the component to add to an existing project



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String





OUTPUTS

An Inverted Triangle PowerShell WPF project structure supported by WPFBot3000





-------------------------- EXAMPLE 1 --------------------------



PS \\>New-InvertedTrianglePSS



This command (without parameters) generates the base ITPSS demonstration. Running ITPSSDemo.ps1 starts a WPF window









-------------------------- EXAMPLE 2 --------------------------



PS \\>New-InvertedTrianglePSS -Project Demo.One



This command generates the ITPSS scaffold with the specified project name. Running the root *.ps1 script starts a

WPF window









-------------------------- EXAMPLE 3 --------------------------



PS \\>New-InvertedTrianglePSS -Component demo.two



This command, when run inside an ITPSS scaffold, generates a component and supporting files with the specified

component name. The component var needs to be placed into a layout to be visible. A dot in the supplied name will

convert to camelcasing inside the component files (e.g camel.case -> camelCase)









-------------------------- EXAMPLE 4 --------------------------



PS \\>New-InvertedTrianglePSS -Project Demo.One -Component demo.two



This command generates the ITPSS scaffold with the specified project name and then generates a component and

supporting files with the specified component name











RELATED LINKS

https://github.com/MikeShepard/WPFBot3000

https://www.powershellgallery.com/packages/WPFBot3000