Skip to content

Commit 1f40993

Browse files
committed
Bug1730534 [PowerShell for XSMB] enable accepting objects from pipeline to enable multi-task in File cmdlets
1 parent 14b5be8 commit 1f40993

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

src/ServiceManagement/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageDirectory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class NewAzureStorageDirectory : AzureStorageFileCmdletBase
5050
[Parameter(
5151
Position = 1,
5252
Mandatory = true,
53+
ValueFromPipeline = true,
5354
HelpMessage = "Path of the directory to be created.")]
5455
[ValidateNotNullOrEmpty]
5556
public string Path { get; set; }

src/ServiceManagement/Storage/Commands.Storage/File/Cmdlet/NewAzureStorageShare.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class NewAzureStorageShare : AzureStorageFileCmdletBase
2222
[Parameter(
2323
Position = 0,
2424
Mandatory = true,
25+
ValueFromPipeline = true,
2526
HelpMessage = "Name of the file share to be created.")]
2627
[ValidateNotNullOrEmpty]
2728
public string Name { get; set; }

src/ServiceManagement/Storage/Commands.Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public class RemoveAzureStorageDirectory : AzureStorageFileCmdletBase
6464
HelpMessage = "Path to the directory to be removed.")]
6565
[Parameter(
6666
Position = 1,
67+
ValueFromPipeline = true,
6768
ParameterSetName = Constants.DirectoryParameterSetName,
6869
HelpMessage = "Path to the directory to be removed.")]
6970
[ValidateNotNullOrEmpty]

src/ServiceManagement/Storage/Commands.Storage/File/Cmdlet/RemoveAzureStorageShare.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class RemoveAzureStorageShare : AzureStorageFileCmdletBase
2929
[Parameter(
3030
Position = 0,
3131
Mandatory = true,
32+
ValueFromPipeline = true,
3233
ParameterSetName = Constants.ShareNameParameterSetName,
3334
HelpMessage = "Name of the file share to be removed.")]
3435
[ValidateNotNullOrEmpty]

src/ServiceManagement/Storage/Commands.Storage/File/Cmdlet/SetAzureStorageFileContent.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ public class SetAzureStorageFileContent : StorageFileDataManagementCmdletBase
5252
[ValidateNotNull]
5353
public CloudFileDirectory Directory { get; set; }
5454

55+
[Alias("FullName")]
5556
[Parameter(
5657
Position = 1,
5758
Mandatory = true,
59+
ValueFromPipelineByPropertyName = true,
5860
HelpMessage = "Path to the local file to be uploaded.")]
5961
[ValidateNotNullOrEmpty]
6062
public string Source { get; set; }

0 commit comments

Comments
 (0)