-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Description
Hi there.
motivation
I would really appreciate it if I could allow my contributors to create new function (and files) using plaster.
environment
In a repo for a Powershell module:
- Have a plaster template which prompts the user for:
- Type of the resource : public function? Private function? Test file? A.s.o.
- Name : of the function and/or file
- Have a file that contains the workspace template definition (relative path to template and output)
- Have plaster use that file so it doesn't require further parameters
possible solution
Have a file in the root of the module that contains a file (like composer or npm) with the config of for plaster.
File could be named .plaster.
File could contain a json object which can be mapped onto psboundparameters.
If this file is not in the current workingdir, normal behavior applies
result
If $pwd.path contains a config file user could use the workspace's template by:
invoke-Plastermarkekraus, lipkau and brianbunke
Metadata
Metadata
Assignees
Labels
No labels