From 317eda2dc5584dd510374aa9573563db5f47e969 Mon Sep 17 00:00:00 2001 From: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com> Date: Wed, 29 Sep 2021 10:24:36 -0700 Subject: [PATCH] Prompt to submit in interactive update flow (#179) * add interactive submit * update notice text and increment version --- NOTICE.txt | 23 ++++++++++++++++++- src/WingetCreateCLI/Commands/UpdateCommand.cs | 5 ++++ src/WingetCreateCLI/WingetCreateCLI.csproj | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/NOTICE.txt b/NOTICE.txt index dacdee22..9f26fb76 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -312,6 +312,27 @@ NLog 4.7.9 - BSD-3-Clause +Copyright (c) . All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--------------------------------------------------------- + +--------------------------------------------------------- + +Polly 7.2.2 - BSD-3-Clause + + +(c) 2008 VeriSign, Inc. + Copyright (c) . All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -711,7 +732,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI --------------------------------------------------------- -Sharprompt 2.2.1 - MIT +Sharprompt 2.3.1 - MIT (c) 2008 VeriSign, Inc. diff --git a/src/WingetCreateCLI/Commands/UpdateCommand.cs b/src/WingetCreateCLI/Commands/UpdateCommand.cs index 20bd4be4..84e37f8e 100644 --- a/src/WingetCreateCLI/Commands/UpdateCommand.cs +++ b/src/WingetCreateCLI/Commands/UpdateCommand.cs @@ -448,6 +448,11 @@ private async Task UpdateManifestsInteractively(Manifests manifests) DisplayManifestsAsMenuSelection(manifests); } + if (!this.SubmitToGitHub) + { + this.SubmitToGitHub = Prompt.Confirm(Resources.ConfirmGitHubSubmitManifest_Message); + } + return manifests; } diff --git a/src/WingetCreateCLI/WingetCreateCLI.csproj b/src/WingetCreateCLI/WingetCreateCLI.csproj index da5ca487..2bb81994 100644 --- a/src/WingetCreateCLI/WingetCreateCLI.csproj +++ b/src/WingetCreateCLI/WingetCreateCLI.csproj @@ -5,7 +5,7 @@ net5.0-windows10.0.17763.0 WingetCreateCLI Microsoft.WingetCreateCLI - 0.4.0 + 0.4.1 x64;x86 win-x64;win-x86 true