You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This discussion was converted from issue #311 on February 26, 2021 17:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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:
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-Plaster
Beta Was this translation helpful? Give feedback.
All reactions