Skip to content

Commit

Permalink
feat: Exporting and mounting Splatter ( Fixes #39, Fixes #40, Fixes #41
Browse files Browse the repository at this point in the history
…, Fixes #42 )

Using PipeScript to build the module
  • Loading branch information
StartAutomating authored and StartAutomating committed Sep 6, 2024
1 parent c5dd624 commit 797d328
Showing 1 changed file with 4 additions and 108 deletions.
112 changes: 4 additions & 108 deletions docs/Initialize-Splatter.md
Original file line number Diff line number Diff line change
@@ -1,76 +1,45 @@
Initialize-Splatter
-------------------




### Synopsis
Initializes an embeddable version of Splatter



---


### Description

Initialize-Splatter enables you to embed Splatter into any module.



---


### Related Links
* [Get-Splat](Get-Splat.md)



* [Find-Splat](Find-Splat.md)



* [Use-Splat](Use-Splat.md)



* [Merge-Splat](Merge-Splat.md)





---


### Examples
#### EXAMPLE 1
```PowerShell
'@.ps1' # Initialize Splatter
```
> EXAMPLE 1
#### EXAMPLE 2
```PowerShell
'@.ps1'
'@.ps1' # Initialize Splatter
```
> EXAMPLE 2
#### EXAMPLE 3
```PowerShell
'@.ps1' # Initialize splatter
```



---


### Parameters
#### **Verb**

The verbs to install.



Valid Values:

* Get
Expand All @@ -79,132 +48,59 @@ Valid Values:
* Merge
* Out






|Type |Required|Position|PipelineInput |
|------------|--------|--------|---------------------|
|`[String[]]`|false |1 |true (ByPropertyName)|



#### **Compress**

If set, will not compress the definitions






|Type |Required|Position|PipelineInput |Aliases |
|----------|--------|--------|---------------------|-------------|
|`[Switch]`|false |named |true (ByPropertyName)|NoCompression|



#### **Minify**

If set, will not minify the definitions






|Type |Required|Position|PipelineInput |Aliases |
|----------|--------|--------|---------------------|--------------|
|`[Switch]`|false |named |true (ByPropertyName)|NoMinification|



#### **NoLogo**

If set, will not add a line of documentation linking to the module






|Type |Required|Position|PipelineInput |
|----------|--------|--------|---------------------|
|`[Switch]`|false |named |true (ByPropertyName)|



#### **NoHelp**

If set, will strip inline help from the commands.






|Type |Required|Position|PipelineInput |
|----------|--------|--------|---------------------|
|`[Switch]`|false |named |true (ByPropertyName)|



#### **AsFunction**

If set, will define the commands as functions and define aliases.
If you use this, please use the manifest or Export-ModuleMember to hide Splatter's commands.
If not set, Splatter will install as ScriptBlocks (these will not be exported from a module)






|Type |Required|Position|PipelineInput|
|----------|--------|--------|-------------|
|`[Switch]`|false |named |false |



#### **Inline**

If set, splatter will be defined inline.
This will not preface Splatter with a param() block and PSScriptAnalyzer suppression messages






|Type |Required|Position|PipelineInput|
|----------|--------|--------|-------------|
|`[Switch]`|false |named |false |



#### **OutputPath**

The output path.
If provided, will output to this file and return the file.






|Type |Required|Position|PipelineInput|
|----------|--------|--------|-------------|
|`[String]`|false |2 |false |





---


### Syntax
```PowerShell
Initialize-Splatter [[-Verb] <String[]>] [-Compress] [-Minify] [-NoLogo] [-NoHelp] [-AsFunction] [-Inline] [[-OutputPath] <String>] [<CommonParameters>]
Initialize-Splatter [[-Verb] <String[]>] [-Compress] [-NoLogo] [-NoHelp] [-AsFunction] [-Inline] [[-OutputPath] <String>] [<CommonParameters>]
```

0 comments on commit 797d328

Please sign in to comment.