Skip to content

Commit

Permalink
Merge branch 'feature/pipeline-disconnect' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Aug 18, 2022
2 parents 0810073 + a703d81 commit 89971e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Disconnect-SmoInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Aliases: Connection
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
Expand Down
8 changes: 8 additions & 0 deletions src/PsSmo/DisconnectInstanceCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ namespace PsSmo
public class DisconnectInstanceCommand : ClientCommand
{

[Parameter(
Position = 0,
ValueFromPipeline = true
)]
[ValidateNotNullOrEmpty()]
[Alias("Connection")]
public Server Instance { get; set; } = ConnectInstanceCommand.Instance;

protected override void ProcessRecord()
{
base.ProcessRecord();
Expand Down

0 comments on commit 89971e7

Please sign in to comment.