Skip to content

[Feature] Workspace specific execution #311

@lipkau

Description

@lipkau

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-Plaster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions