Skip to content

Commit

Permalink
fix: Generating .commands.types.ps1xml by default ( Fixes #238, re #236
Browse files Browse the repository at this point in the history
… )
  • Loading branch information
StartAutomating authored and StartAutomating committed Jul 7, 2024
1 parent 81667fb commit 6737e81
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/Import-TypeView.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ Import-TypeView
---------------

### Synopsis
Imports a Type View
Imports Type Views

---

### Description

Imports a Type View, defined in a external file.
Imports one or more Type Views from a directory (and an optional list of commands).

This creates a .types.ps1xml file that can be used to extend the type system of PowerShell.

Each file in the directory will be treated as a property or method of a type.

---

Expand All @@ -32,7 +36,7 @@ The path containing type information.

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

#### **Deserialized**
If set, will generate an identical typeview for the deserialized form of each typename.
Expand Down Expand Up @@ -78,5 +82,5 @@ A pattern describing the types of files that will embedded as constant note prop

### Syntax
```PowerShell
Import-TypeView [-FilePath] <String[]> [-Deserialized] [[-Namespace] <String>] [[-Command] <PSObject[]>] [[-ExcludeFilePath] <PSObject[]>] [[-TextFileType] <PSObject[]>] [<CommonParameters>]
Import-TypeView [[-FilePath] <String[]>] [-Deserialized] [[-Namespace] <String>] [[-Command] <PSObject[]>] [[-ExcludeFilePath] <PSObject[]>] [[-TextFileType] <PSObject[]>] [<CommonParameters>]
```

0 comments on commit 6737e81

Please sign in to comment.