Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 492d68f

Browse files
committed
Added timeout parameter
1 parent 0d7647e commit 492d68f

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
77

8-
## [2.27.1806.0] Unreleased
8+
## [2.27.1806.0]
99
### Added
1010

11-
- Added -CollapseSpecification option to Submit-PnPSearchQuery
12-
- Added -InSiteHierarchy to Get-PnPField to search for fields in the site collection
13-
1411
### Changed
15-
- Fix for issue where using Add-PnPFile and setting Created and Modified did not update values
1612

1713
### Deprecated
1814

1915
### Contributors
2016

17+
## [2.26.1805.1]
18+
### Added
19+
20+
- Added -Timeout option to Add-PnPApp
21+
- Added -CollapseSpecification option to Submit-PnPSearchQuery
22+
- Added -InSiteHierarchy to Get-PnPField to search for fields in the site collection
23+
24+
### Changed
25+
- Fix for issue where using Add-PnPFile and setting Created and Modified did not update values
26+
2127
## [2.26.1805.0]
2228
### Added
2329
- Added Enable-PnPPowerShellTelemetry, Disable-PnPPowerShellTelemetry, Get-PnPPowershellTelemetryEnabled

Commands/Apps/AddApp.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ public class AddApp : PnPCmdlet
4141
[Parameter(Mandatory = false, HelpMessage = "Overwrites the existing app package if it already exists")]
4242
public SwitchParameter Overwrite;
4343

44+
[Parameter(Mandatory = false, HelpMessage = "Specifies the timeout in seconds. Defaults to 200.")]
45+
public int Timeout = 200;
46+
4447
protected override void ExecuteCmdlet()
4548
{
4649
if (!System.IO.Path.IsPathRooted(Path))
@@ -54,7 +57,7 @@ protected override void ExecuteCmdlet()
5457

5558
var manager = new AppManager(ClientContext);
5659

57-
var result = manager.Add(bytes, fileInfo.Name, Overwrite, Scope);
60+
var result = manager.Add(bytes, fileInfo.Name, Overwrite, Scope, timeoutSeconds: Timeout);
5861

5962
try
6063
{

0 commit comments

Comments
 (0)