From 9bffb74bfbc3d4098b5f18de2a53ad07e76037bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Sat, 25 Jan 2020 15:51:44 +0100 Subject: [PATCH 01/12] Updates for AppCenter 2.3.3 and applies category to aliases. Closes #12 --- .../AppCenter.Alias.AnalyticsAppVersions.cs | 2 + .../AppCenter.Alias.AnalyticsAudience.cs | 2 + .../AppCenterAnalyticsAudienceSettings.cs | 5 + .../AppCenter.Alias.AnalyticsEventsDelete.cs | 2 + .../AppCenter.Alias.AnalyticsEventsShow.cs | 2 + .../AppCenter.Alias.AnalyticsLogFlow.cs | 2 + .../AppCenter.Alias.AnalyticsSessions.cs | 2 + .../Apps/Create/AppCenter.Alias.AppsCreate.cs | 2 + .../Create/AppCenterAppsCreateSettings.cs | 9 +- .../Apps/Delete/AppCenter.Alias.AppsDelete.cs | 2 + .../AppCenter.Alias.AppsGetCurrent.cs | 2 + .../Apps/List/AppCenter.Alias.AppsList.cs | 2 + .../AppCenter.Alias.AppsSetCurrent.cs | 6 +- .../AppCenterAppsSetCurrentSettings.cs | 2 +- .../Apps/Show/AppCenter.Alias.AppsShow.cs | 2 + .../Apps/Update/AppCenter.Alias.AppsUpdate.cs | 2 + .../Update/AppCenterAppsUpdateSettings.cs | 5 + .../List/AppCenter.Alias.BuildBranchesList.cs | 2 + .../Show/AppCenter.Alias.BuildBranchesShow.cs | 2 + .../Download/AppCenter.Alias.BuildDownload.cs | 2 + .../AppCenterBuildDownloadSettings.cs | 7 +- .../Build/Logs/AppCenter.Alias.BuildLogs.cs | 2 + .../Build/Queue/AppCenter.Alias.BuildQueue.cs | 2 + .../Queue/AppCenterBuildQueueSettings.cs | 7 +- .../AppCenter.Alias.CodepushDeploymentAdd.cs | 2 + ...AppCenter.Alias.CodepushDeploymentClear.cs | 2 + ...pCenter.Alias.CodepushDeploymentHistory.cs | 2 + .../AppCenter.Alias.CodepushDeploymentList.cs | 2 + ...AppCenterCodepushDeploymentListSettings.cs | 5 + ...ppCenter.Alias.CodepushDeploymentRemove.cs | 2 + ...ppCenter.Alias.CodepushDeploymentRename.cs | 2 + .../Patch/AppCenter.Alias.CodepushPatch.cs | 2 + .../AppCenter.Alias.CodepushPromote.cs | 2 + .../AppCenter.Alias.CodepushRelease.cs | 2 + .../AppCenter.Alias.CodepushReleaseCordova.cs | 2 + ...AppCenter.Alias.CodepushReleaseElectron.cs | 50 +++++++ ...ppCenterCodepushReleaseElectronSettings.cs | 139 ++++++++++++++++++ .../AppCenter.Alias.CodepushReleaseReact.cs | 2 + .../AppCenterCodepushReleaseReactSettings.cs | 15 ++ .../AppCenter.Alias.CodepushRollback.cs | 2 + .../AppCenter.Alias.CrashesUploadMappings.cs | 50 +++++++ .../AppCenterCrashesUploadMappingsSettings.cs | 74 ++++++++++ ...enter.Alias.CrashesUploadMissingSymbols.cs | 2 + .../AppCenter.Alias.CrashesUploadSymbols.cs | 2 + .../AppCenterCrashesUploadSymbolsSettings.cs | 12 +- .../AppCenter.Alias.DistributeGroupsCreate.cs | 2 + .../AppCenter.Alias.DistributeGroupsDelete.cs | 2 + ...ppCenter.Alias.DistributeGroupsDownload.cs | 2 + .../AppCenter.Alias.DistributeGroupsList.cs | 2 + .../AppCenter.Alias.DistributeGroupsShow.cs | 2 + .../AppCenter.Alias.DistributeGroupsUpdate.cs | 2 + .../AppCenter.Alias.DistributeRelease.cs | 6 +- .../AppCenterDistributeReleaseSettings.cs | 32 +++- ....Alias.DistributeReleasesAddDestination.cs | 50 +++++++ ...istributeReleasesAddDestinationSettings.cs | 84 +++++++++++ ...ppCenter.Alias.DistributeReleasesDelete.cs | 2 + .../AppCenter.Alias.DistributeReleasesEdit.cs | 58 ++++++++ ...AppCenterDistributeReleasesEditSettings.cs | 64 ++++++++ .../AppCenter.Alias.DistributeReleasesList.cs | 2 + .../AppCenter.Alias.DistributeReleasesShow.cs | 2 + .../AppCenter.Alias.DistributeStoresList.cs | 50 +++++++ .../AppCenterDistributeStoresListSettings.cs | 59 ++++++++ .../Login/AppCenter.Alias.Login.cs | 2 + .../Logout/AppCenter.Alias.Logout.cs | 2 + .../Apps/List/AppCenter.Alias.OrgsAppsList.cs | 2 + .../AppCenter.Alias.OrgsCollaboratorsList.cs | 2 + ...AppCenter.Alias.OrgsCollaboratorsUpdate.cs | 2 + .../Orgs/Create/AppCenter.Alias.OrgsCreate.cs | 2 + .../Orgs/List/AppCenter.Alias.OrgsList.cs | 2 + .../Orgs/Show/AppCenter.Alias.OrgsShow.cs | 2 + .../Orgs/Update/AppCenter.Alias.OrgsUpdate.cs | 2 + .../List/AppCenter.Alias.ProfileList.cs | 2 + .../Update/AppCenter.Alias.ProfileUpdate.cs | 2 + .../AppCenter.Alias.SetupAutocomplete.cs | 2 + .../Off/AppCenter.Alias.TelemetryOff.cs | 2 + .../On/AppCenter.Alias.TelemetryOn.cs | 2 + .../Download/AppCenter.Alias.TestDownload.cs | 6 +- .../Download/AppCenterTestDownloadSettings.cs | 2 +- .../AppCenter.Alias.TestGenerateAppium.cs | 2 + .../AppCenter.Alias.TestGenerateUitest.cs | 2 + .../AppCenter.Alias.TestPrepareAppium.cs | 2 + .../AppCenter.Alias.TestPrepareCalabash.cs | 2 + .../AppCenter.Alias.TestPrepareEspresso.cs | 2 + .../AppCenterTestPrepareEspressoSettings.cs | 2 +- .../AppCenter.Alias.TestPrepareUitest.cs | 2 + .../AppCenter.Alias.TestPrepareXcuitest.cs | 2 + .../AppCenterTestPrepareXcuitestSettings.cs | 2 +- .../Appium/AppCenter.Alias.TestRunAppium.cs | 2 + .../Appium/AppCenterTestRunAppiumSettings.cs | 6 +- .../AppCenter.Alias.TestRunCalabash.cs | 2 + .../AppCenterTestRunCalabashSettings.cs | 7 +- .../AppCenter.Alias.TestRunEspresso.cs | 2 + .../AppCenterTestRunEspressoSettings.cs | 9 +- .../AppCenter.Alias.TestRunManifest.cs | 2 + .../AppCenterTestRunManifestSettings.cs | 4 +- .../Uitest/AppCenter.Alias.TestRunUitest.cs | 2 + .../Uitest/AppCenterTestRunUitestSettings.cs | 10 +- .../AppCenter.Alias.TestRunXcuitest.cs | 2 + .../AppCenterTestRunXcuitestSettings.cs | 9 +- .../Test/Status/AppCenter.Alias.TestStatus.cs | 2 + .../Test/Stop/AppCenter.Alias.TestStop.cs | 2 + .../Test/Wizard/AppCenter.Alias.TestWizard.cs | 50 +++++++ .../Wizard/AppCenterTestWizardSettings.cs | 59 ++++++++ .../Create/AppCenter.Alias.TokensCreate.cs | 2 + .../Delete/AppCenter.Alias.TokensDelete.cs | 2 + .../Tokens/List/AppCenter.Alias.TokensList.cs | 2 + 106 files changed, 1048 insertions(+), 51 deletions(-) create mode 100644 src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenter.Alias.CodepushReleaseElectron.cs create mode 100644 src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs create mode 100644 src/Cake.AppCenter/Crashes/UploadMappings/AppCenter.Alias.CrashesUploadMappings.cs create mode 100644 src/Cake.AppCenter/Crashes/UploadMappings/AppCenterCrashesUploadMappingsSettings.cs create mode 100644 src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenter.Alias.DistributeReleasesAddDestination.cs create mode 100644 src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenterDistributeReleasesAddDestinationSettings.cs create mode 100644 src/Cake.AppCenter/Distribute/Releases/Edit/AppCenter.Alias.DistributeReleasesEdit.cs create mode 100644 src/Cake.AppCenter/Distribute/Releases/Edit/AppCenterDistributeReleasesEditSettings.cs create mode 100644 src/Cake.AppCenter/Distribute/Stores/List/AppCenter.Alias.DistributeStoresList.cs create mode 100644 src/Cake.AppCenter/Distribute/Stores/List/AppCenterDistributeStoresListSettings.cs create mode 100644 src/Cake.AppCenter/Test/Wizard/AppCenter.Alias.TestWizard.cs create mode 100644 src/Cake.AppCenter/Test/Wizard/AppCenterTestWizardSettings.cs diff --git a/src/Cake.AppCenter/Analytics/AppVersions/AppCenter.Alias.AnalyticsAppVersions.cs b/src/Cake.AppCenter/Analytics/AppVersions/AppCenter.Alias.AnalyticsAppVersions.cs index 4b4b141..1e955dc 100644 --- a/src/Cake.AppCenter/Analytics/AppVersions/AppCenter.Alias.AnalyticsAppVersions.cs +++ b/src/Cake.AppCenter/Analytics/AppVersions/AppCenter.Alias.AnalyticsAppVersions.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static void AppCenterAnalyticsAppVersions(this ICakeContext context, AppCenterAnalyticsAppVersionsSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAnalyticsAppVersions(this ICakeContext context, AppC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static IEnumerable AppCenterAnalyticsAppVersionsWithResult(this ICakeContext context, AppCenterAnalyticsAppVersionsSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Analytics/Audience/AppCenter.Alias.AnalyticsAudience.cs b/src/Cake.AppCenter/Analytics/Audience/AppCenter.Alias.AnalyticsAudience.cs index b71737d..a352890 100644 --- a/src/Cake.AppCenter/Analytics/Audience/AppCenter.Alias.AnalyticsAudience.cs +++ b/src/Cake.AppCenter/Analytics/Audience/AppCenter.Alias.AnalyticsAudience.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static void AppCenterAnalyticsAudience(this ICakeContext context, AppCenterAnalyticsAudienceSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAnalyticsAudience(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static IEnumerable AppCenterAnalyticsAudienceWithResult(this ICakeContext context, AppCenterAnalyticsAudienceSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Analytics/Audience/AppCenterAnalyticsAudienceSettings.cs b/src/Cake.AppCenter/Analytics/Audience/AppCenterAnalyticsAudienceSettings.cs index 8876883..9dec27e 100644 --- a/src/Cake.AppCenter/Analytics/Audience/AppCenterAnalyticsAudienceSettings.cs +++ b/src/Cake.AppCenter/Analytics/Audience/AppCenterAnalyticsAudienceSettings.cs @@ -31,6 +31,11 @@ public sealed class AppCenterAnalyticsAudienceSettings : AutoToolSettings /// public bool? Devices { get; set; } /// + /// -b|--app-build <arg> + /// Specify app build to show statistics for + /// + public string AppBuild { get; set; } + /// /// -V|--app-version <arg> /// Specify app version to show statistics for /// diff --git a/src/Cake.AppCenter/Analytics/Events/Delete/AppCenter.Alias.AnalyticsEventsDelete.cs b/src/Cake.AppCenter/Analytics/Events/Delete/AppCenter.Alias.AnalyticsEventsDelete.cs index e268a6d..912e39c 100644 --- a/src/Cake.AppCenter/Analytics/Events/Delete/AppCenter.Alias.AnalyticsEventsDelete.cs +++ b/src/Cake.AppCenter/Analytics/Events/Delete/AppCenter.Alias.AnalyticsEventsDelete.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static void AppCenterAnalyticsEventsDelete(this ICakeContext context, AppCenterAnalyticsEventsDeleteSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAnalyticsEventsDelete(this ICakeContext context, App /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static IEnumerable AppCenterAnalyticsEventsDeleteWithResult(this ICakeContext context, AppCenterAnalyticsEventsDeleteSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Analytics/Events/Show/AppCenter.Alias.AnalyticsEventsShow.cs b/src/Cake.AppCenter/Analytics/Events/Show/AppCenter.Alias.AnalyticsEventsShow.cs index ce4d321..a57e48e 100644 --- a/src/Cake.AppCenter/Analytics/Events/Show/AppCenter.Alias.AnalyticsEventsShow.cs +++ b/src/Cake.AppCenter/Analytics/Events/Show/AppCenter.Alias.AnalyticsEventsShow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static void AppCenterAnalyticsEventsShow(this ICakeContext context, AppCenterAnalyticsEventsShowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAnalyticsEventsShow(this ICakeContext context, AppCe /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static IEnumerable AppCenterAnalyticsEventsShowWithResult(this ICakeContext context, AppCenterAnalyticsEventsShowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Analytics/LogFlow/AppCenter.Alias.AnalyticsLogFlow.cs b/src/Cake.AppCenter/Analytics/LogFlow/AppCenter.Alias.AnalyticsLogFlow.cs index f7c4917..3f7b740 100644 --- a/src/Cake.AppCenter/Analytics/LogFlow/AppCenter.Alias.AnalyticsLogFlow.cs +++ b/src/Cake.AppCenter/Analytics/LogFlow/AppCenter.Alias.AnalyticsLogFlow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static void AppCenterAnalyticsLogFlow(this ICakeContext context, AppCenterAnalyticsLogFlowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAnalyticsLogFlow(this ICakeContext context, AppCente /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static IEnumerable AppCenterAnalyticsLogFlowWithResult(this ICakeContext context, AppCenterAnalyticsLogFlowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Analytics/Sessions/AppCenter.Alias.AnalyticsSessions.cs b/src/Cake.AppCenter/Analytics/Sessions/AppCenter.Alias.AnalyticsSessions.cs index bdad04b..0a332cd 100644 --- a/src/Cake.AppCenter/Analytics/Sessions/AppCenter.Alias.AnalyticsSessions.cs +++ b/src/Cake.AppCenter/Analytics/Sessions/AppCenter.Alias.AnalyticsSessions.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static void AppCenterAnalyticsSessions(this ICakeContext context, AppCenterAnalyticsSessionsSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAnalyticsSessions(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Analytics")] public static IEnumerable AppCenterAnalyticsSessionsWithResult(this ICakeContext context, AppCenterAnalyticsSessionsSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/Create/AppCenter.Alias.AppsCreate.cs b/src/Cake.AppCenter/Apps/Create/AppCenter.Alias.AppsCreate.cs index 7b0ffe6..30e0203 100644 --- a/src/Cake.AppCenter/Apps/Create/AppCenter.Alias.AppsCreate.cs +++ b/src/Cake.AppCenter/Apps/Create/AppCenter.Alias.AppsCreate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsCreate(this ICakeContext context, AppCenterAppsCreateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAppsCreate(this ICakeContext context, AppCenterAppsC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsCreateWithResult(this ICakeContext context, AppCenterAppsCreateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/Create/AppCenterAppsCreateSettings.cs b/src/Cake.AppCenter/Apps/Create/AppCenterAppsCreateSettings.cs index 5acca31..01bf235 100644 --- a/src/Cake.AppCenter/Apps/Create/AppCenterAppsCreateSettings.cs +++ b/src/Cake.AppCenter/Apps/Create/AppCenterAppsCreateSettings.cs @@ -12,12 +12,12 @@ public sealed class AppCenterAppsCreateSettings : AutoToolSettings { /// /// -p|--platform <arg> - /// The platform of the app. Supported values: Java, Objective-C-Swift, React-Native, UWP, Xamarin + /// The platform of the app. Supported values: Cordova, Java, Objective-C-Swift, React-Native, Unity, UWP, WinForms, WPF, Xamarin, Custom /// public string Platform { get; set; } /// /// -o|--os <arg> - /// The OS the app will be running on. Supported values: Android, iOS, Windows + /// The OS the app will be running on. Supported values: Android, Custom, iOS, macOS, tvOS, Windows /// public string Os { get; set; } /// @@ -26,6 +26,11 @@ public sealed class AppCenterAppsCreateSettings : AutoToolSettings /// public string DisplayName { get; set; } /// + /// -r|--release-type <arg> + /// The app release type. Suggested values are Alpha, Beta, Production, Store, Enterprise. Custom values are allowed and must be must be one word, alphanumeric, first letter capitalized. + /// + public string ReleaseType { get; set; } + /// /// -n|--name <arg> /// The name of the app used in URLs. Can optionally be provided specifically, otherwise a generated name will be derived from display-name /// diff --git a/src/Cake.AppCenter/Apps/Delete/AppCenter.Alias.AppsDelete.cs b/src/Cake.AppCenter/Apps/Delete/AppCenter.Alias.AppsDelete.cs index 89407fe..a19ebf2 100644 --- a/src/Cake.AppCenter/Apps/Delete/AppCenter.Alias.AppsDelete.cs +++ b/src/Cake.AppCenter/Apps/Delete/AppCenter.Alias.AppsDelete.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsDelete(this ICakeContext context, AppCenterAppsDeleteSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAppsDelete(this ICakeContext context, AppCenterAppsD /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsDeleteWithResult(this ICakeContext context, AppCenterAppsDeleteSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/GetCurrent/AppCenter.Alias.AppsGetCurrent.cs b/src/Cake.AppCenter/Apps/GetCurrent/AppCenter.Alias.AppsGetCurrent.cs index 87b61e7..fb3d89c 100644 --- a/src/Cake.AppCenter/Apps/GetCurrent/AppCenter.Alias.AppsGetCurrent.cs +++ b/src/Cake.AppCenter/Apps/GetCurrent/AppCenter.Alias.AppsGetCurrent.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsGetCurrent(this ICakeContext context, AppCenterAppsGetCurrentSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAppsGetCurrent(this ICakeContext context, AppCenterA /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsGetCurrentWithResult(this ICakeContext context, AppCenterAppsGetCurrentSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/List/AppCenter.Alias.AppsList.cs b/src/Cake.AppCenter/Apps/List/AppCenter.Alias.AppsList.cs index e774d50..a6f28de 100644 --- a/src/Cake.AppCenter/Apps/List/AppCenter.Alias.AppsList.cs +++ b/src/Cake.AppCenter/Apps/List/AppCenter.Alias.AppsList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsList(this ICakeContext context, AppCenterAppsListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAppsList(this ICakeContext context, AppCenterAppsLis /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsListWithResult(this ICakeContext context, AppCenterAppsListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/SetCurrent/AppCenter.Alias.AppsSetCurrent.cs b/src/Cake.AppCenter/Apps/SetCurrent/AppCenter.Alias.AppsSetCurrent.cs index c2be830..dc705ca 100644 --- a/src/Cake.AppCenter/Apps/SetCurrent/AppCenter.Alias.AppsSetCurrent.cs +++ b/src/Cake.AppCenter/Apps/SetCurrent/AppCenter.Alias.AppsSetCurrent.cs @@ -8,12 +8,13 @@ namespace Cake.AppCenter partial class AppCenterAliases { /// - /// Set default application for all CLI commands + /// Set default application for all CLI commands. Not compatible when authenticating with '--token' or an environment variable. Use environment variable 'MOBILE_CENTER_CURRENT_APP' to set the default app instead. /// /// The context. /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsSetCurrent(this ICakeContext context, AppCenterAppsSetCurrentSettings settings, string app) { if (context == null) @@ -31,12 +32,13 @@ public static void AppCenterAppsSetCurrent(this ICakeContext context, AppCenterA /// - /// Set default application for all CLI commands + /// Set default application for all CLI commands. Not compatible when authenticating with '--token' or an environment variable. Use environment variable 'MOBILE_CENTER_CURRENT_APP' to set the default app instead. /// /// The context. /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsSetCurrentWithResult(this ICakeContext context, AppCenterAppsSetCurrentSettings settings, string app) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/SetCurrent/AppCenterAppsSetCurrentSettings.cs b/src/Cake.AppCenter/Apps/SetCurrent/AppCenterAppsSetCurrentSettings.cs index c9e0d24..ce1a75d 100644 --- a/src/Cake.AppCenter/Apps/SetCurrent/AppCenterAppsSetCurrentSettings.cs +++ b/src/Cake.AppCenter/Apps/SetCurrent/AppCenterAppsSetCurrentSettings.cs @@ -5,7 +5,7 @@ namespace Cake.AppCenter { /// /// Settings for appcenter apps set-current. - /// Set default application for all CLI commands. + /// Set default application for all CLI commands. Not compatible when authenticating with '--token' or an environment variable. Use environment variable 'MOBILE_CENTER_CURRENT_APP' to set the default app instead.. /// [CompilerGenerated] public sealed class AppCenterAppsSetCurrentSettings : AutoToolSettings diff --git a/src/Cake.AppCenter/Apps/Show/AppCenter.Alias.AppsShow.cs b/src/Cake.AppCenter/Apps/Show/AppCenter.Alias.AppsShow.cs index ae55ec3..b86e701 100644 --- a/src/Cake.AppCenter/Apps/Show/AppCenter.Alias.AppsShow.cs +++ b/src/Cake.AppCenter/Apps/Show/AppCenter.Alias.AppsShow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsShow(this ICakeContext context, AppCenterAppsShowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAppsShow(this ICakeContext context, AppCenterAppsSho /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsShowWithResult(this ICakeContext context, AppCenterAppsShowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/Update/AppCenter.Alias.AppsUpdate.cs b/src/Cake.AppCenter/Apps/Update/AppCenter.Alias.AppsUpdate.cs index c80a42b..d05cd44 100644 --- a/src/Cake.AppCenter/Apps/Update/AppCenter.Alias.AppsUpdate.cs +++ b/src/Cake.AppCenter/Apps/Update/AppCenter.Alias.AppsUpdate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static void AppCenterAppsUpdate(this ICakeContext context, AppCenterAppsUpdateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterAppsUpdate(this ICakeContext context, AppCenterAppsU /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Apps")] public static IEnumerable AppCenterAppsUpdateWithResult(this ICakeContext context, AppCenterAppsUpdateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Apps/Update/AppCenterAppsUpdateSettings.cs b/src/Cake.AppCenter/Apps/Update/AppCenterAppsUpdateSettings.cs index 377ac07..135885b 100644 --- a/src/Cake.AppCenter/Apps/Update/AppCenterAppsUpdateSettings.cs +++ b/src/Cake.AppCenter/Apps/Update/AppCenterAppsUpdateSettings.cs @@ -10,6 +10,11 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterAppsUpdateSettings : AutoToolSettings { + /// + /// -r|--release-type <arg> + /// The app release type. Suggested values are Alpha, Beta, Production, Store, Enterprise. Custom values are allowed and must be must be one word, alphanumeric, first letter capitalized. + /// + public string ReleaseType { get; set; } /// /// -n|--name <arg> /// The name of the app used in URLs. diff --git a/src/Cake.AppCenter/Build/Branches/List/AppCenter.Alias.BuildBranchesList.cs b/src/Cake.AppCenter/Build/Branches/List/AppCenter.Alias.BuildBranchesList.cs index cd846fd..7ffad76 100644 --- a/src/Cake.AppCenter/Build/Branches/List/AppCenter.Alias.BuildBranchesList.cs +++ b/src/Cake.AppCenter/Build/Branches/List/AppCenter.Alias.BuildBranchesList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static void AppCenterBuildBranchesList(this ICakeContext context, AppCenterBuildBranchesListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterBuildBranchesList(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static IEnumerable AppCenterBuildBranchesListWithResult(this ICakeContext context, AppCenterBuildBranchesListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Build/Branches/Show/AppCenter.Alias.BuildBranchesShow.cs b/src/Cake.AppCenter/Build/Branches/Show/AppCenter.Alias.BuildBranchesShow.cs index 70f1a5f..60dd9a5 100644 --- a/src/Cake.AppCenter/Build/Branches/Show/AppCenter.Alias.BuildBranchesShow.cs +++ b/src/Cake.AppCenter/Build/Branches/Show/AppCenter.Alias.BuildBranchesShow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static void AppCenterBuildBranchesShow(this ICakeContext context, AppCenterBuildBranchesShowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterBuildBranchesShow(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static IEnumerable AppCenterBuildBranchesShowWithResult(this ICakeContext context, AppCenterBuildBranchesShowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Build/Download/AppCenter.Alias.BuildDownload.cs b/src/Cake.AppCenter/Build/Download/AppCenter.Alias.BuildDownload.cs index 024c6af..18bcc86 100644 --- a/src/Cake.AppCenter/Build/Download/AppCenter.Alias.BuildDownload.cs +++ b/src/Cake.AppCenter/Build/Download/AppCenter.Alias.BuildDownload.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static void AppCenterBuildDownload(this ICakeContext context, AppCenterBuildDownloadSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterBuildDownload(this ICakeContext context, AppCenterBu /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static IEnumerable AppCenterBuildDownloadWithResult(this ICakeContext context, AppCenterBuildDownloadSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Build/Download/AppCenterBuildDownloadSettings.cs b/src/Cake.AppCenter/Build/Download/AppCenterBuildDownloadSettings.cs index 8476462..382cefd 100644 --- a/src/Cake.AppCenter/Build/Download/AppCenterBuildDownloadSettings.cs +++ b/src/Cake.AppCenter/Build/Download/AppCenterBuildDownloadSettings.cs @@ -21,8 +21,13 @@ public sealed class AppCenterBuildDownloadSettings : AutoToolSettings /// public string Id { get; set; } /// + /// -f|--file <arg> + /// Destination file. Optional parameter to override the default auto-generated file name + /// + public string File { get; set; } + /// /// -d|--dest <arg> - /// Download destination path + /// Destination path. Optional parameter to override the default destination path of the downloaded build /// public string Dest { get; set; } /// diff --git a/src/Cake.AppCenter/Build/Logs/AppCenter.Alias.BuildLogs.cs b/src/Cake.AppCenter/Build/Logs/AppCenter.Alias.BuildLogs.cs index 621dbfd..c4e1b84 100644 --- a/src/Cake.AppCenter/Build/Logs/AppCenter.Alias.BuildLogs.cs +++ b/src/Cake.AppCenter/Build/Logs/AppCenter.Alias.BuildLogs.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static void AppCenterBuildLogs(this ICakeContext context, AppCenterBuildLogsSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterBuildLogs(this ICakeContext context, AppCenterBuildL /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static IEnumerable AppCenterBuildLogsWithResult(this ICakeContext context, AppCenterBuildLogsSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Build/Queue/AppCenter.Alias.BuildQueue.cs b/src/Cake.AppCenter/Build/Queue/AppCenter.Alias.BuildQueue.cs index 5004e1b..1bf98f2 100644 --- a/src/Cake.AppCenter/Build/Queue/AppCenter.Alias.BuildQueue.cs +++ b/src/Cake.AppCenter/Build/Queue/AppCenter.Alias.BuildQueue.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static void AppCenterBuildQueue(this ICakeContext context, AppCenterBuildQueueSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterBuildQueue(this ICakeContext context, AppCenterBuild /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Build")] public static IEnumerable AppCenterBuildQueueWithResult(this ICakeContext context, AppCenterBuildQueueSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Build/Queue/AppCenterBuildQueueSettings.cs b/src/Cake.AppCenter/Build/Queue/AppCenterBuildQueueSettings.cs index 188d0e9..6e56dd5 100644 --- a/src/Cake.AppCenter/Build/Queue/AppCenterBuildQueueSettings.cs +++ b/src/Cake.AppCenter/Build/Queue/AppCenterBuildQueueSettings.cs @@ -12,10 +12,15 @@ public sealed class AppCenterBuildQueueSettings : AutoToolSettings { /// /// -b|--branch <arg> - /// Branch to be build + /// Branch to be built /// public string Branch { get; set; } /// + /// -s|--source-version <arg> + /// Source control version reference + /// + public string SourceVersion { get; set; } + /// /// -d|--debug-logs /// Enable debug mode /// diff --git a/src/Cake.AppCenter/Codepush/Deployment/Add/AppCenter.Alias.CodepushDeploymentAdd.cs b/src/Cake.AppCenter/Codepush/Deployment/Add/AppCenter.Alias.CodepushDeploymentAdd.cs index 4418fdc..484283a 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/Add/AppCenter.Alias.CodepushDeploymentAdd.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/Add/AppCenter.Alias.CodepushDeploymentAdd.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushDeploymentAdd(this ICakeContext context, AppCenterCodepushDeploymentAddSettings settings, string newDeploymentName) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCodepushDeploymentAdd(this ICakeContext context, App /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushDeploymentAddWithResult(this ICakeContext context, AppCenterCodepushDeploymentAddSettings settings, string newDeploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Deployment/Clear/AppCenter.Alias.CodepushDeploymentClear.cs b/src/Cake.AppCenter/Codepush/Deployment/Clear/AppCenter.Alias.CodepushDeploymentClear.cs index ec8c994..7044c0c 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/Clear/AppCenter.Alias.CodepushDeploymentClear.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/Clear/AppCenter.Alias.CodepushDeploymentClear.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushDeploymentClear(this ICakeContext context, AppCenterCodepushDeploymentClearSettings settings, string deploymentName) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCodepushDeploymentClear(this ICakeContext context, A /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushDeploymentClearWithResult(this ICakeContext context, AppCenterCodepushDeploymentClearSettings settings, string deploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Deployment/History/AppCenter.Alias.CodepushDeploymentHistory.cs b/src/Cake.AppCenter/Codepush/Deployment/History/AppCenter.Alias.CodepushDeploymentHistory.cs index 3289bca..0a49cc9 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/History/AppCenter.Alias.CodepushDeploymentHistory.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/History/AppCenter.Alias.CodepushDeploymentHistory.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushDeploymentHistory(this ICakeContext context, AppCenterCodepushDeploymentHistorySettings settings, string deploymentName) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCodepushDeploymentHistory(this ICakeContext context, /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushDeploymentHistoryWithResult(this ICakeContext context, AppCenterCodepushDeploymentHistorySettings settings, string deploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Deployment/List/AppCenter.Alias.CodepushDeploymentList.cs b/src/Cake.AppCenter/Codepush/Deployment/List/AppCenter.Alias.CodepushDeploymentList.cs index c02efb5..7d5d601 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/List/AppCenter.Alias.CodepushDeploymentList.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/List/AppCenter.Alias.CodepushDeploymentList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushDeploymentList(this ICakeContext context, AppCenterCodepushDeploymentListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterCodepushDeploymentList(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushDeploymentListWithResult(this ICakeContext context, AppCenterCodepushDeploymentListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Deployment/List/AppCenterCodepushDeploymentListSettings.cs b/src/Cake.AppCenter/Codepush/Deployment/List/AppCenterCodepushDeploymentListSettings.cs index aa6ee7a..da39cb7 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/List/AppCenterCodepushDeploymentListSettings.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/List/AppCenterCodepushDeploymentListSettings.cs @@ -10,6 +10,11 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterCodepushDeploymentListSettings : AutoToolSettings { + /// + /// -k|--displayKeys + /// Specifies whether to display the deployment keys + /// + public bool? DisplayKeys { get; set; } /// /// -a|--app <arg> /// Specify app in the <ownerName>/<appName> format diff --git a/src/Cake.AppCenter/Codepush/Deployment/Remove/AppCenter.Alias.CodepushDeploymentRemove.cs b/src/Cake.AppCenter/Codepush/Deployment/Remove/AppCenter.Alias.CodepushDeploymentRemove.cs index 09f50f8..528390b 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/Remove/AppCenter.Alias.CodepushDeploymentRemove.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/Remove/AppCenter.Alias.CodepushDeploymentRemove.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushDeploymentRemove(this ICakeContext context, AppCenterCodepushDeploymentRemoveSettings settings, string deploymentName) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCodepushDeploymentRemove(this ICakeContext context, /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushDeploymentRemoveWithResult(this ICakeContext context, AppCenterCodepushDeploymentRemoveSettings settings, string deploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Deployment/Rename/AppCenter.Alias.CodepushDeploymentRename.cs b/src/Cake.AppCenter/Codepush/Deployment/Rename/AppCenter.Alias.CodepushDeploymentRename.cs index 956c4ad..8caa4d7 100644 --- a/src/Cake.AppCenter/Codepush/Deployment/Rename/AppCenter.Alias.CodepushDeploymentRename.cs +++ b/src/Cake.AppCenter/Codepush/Deployment/Rename/AppCenter.Alias.CodepushDeploymentRename.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushDeploymentRename(this ICakeContext context, AppCenterCodepushDeploymentRenameSettings settings, string currentDeploymentName, string newDeploymentName) { if (context == null) @@ -41,6 +42,7 @@ public static void AppCenterCodepushDeploymentRename(this ICakeContext context, /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushDeploymentRenameWithResult(this ICakeContext context, AppCenterCodepushDeploymentRenameSettings settings, string currentDeploymentName, string newDeploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Patch/AppCenter.Alias.CodepushPatch.cs b/src/Cake.AppCenter/Codepush/Patch/AppCenter.Alias.CodepushPatch.cs index b976af9..90f0928 100644 --- a/src/Cake.AppCenter/Codepush/Patch/AppCenter.Alias.CodepushPatch.cs +++ b/src/Cake.AppCenter/Codepush/Patch/AppCenter.Alias.CodepushPatch.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushPatch(this ICakeContext context, AppCenterCodepushPatchSettings settings, string deploymentName) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCodepushPatch(this ICakeContext context, AppCenterCo /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushPatchWithResult(this ICakeContext context, AppCenterCodepushPatchSettings settings, string deploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Promote/AppCenter.Alias.CodepushPromote.cs b/src/Cake.AppCenter/Codepush/Promote/AppCenter.Alias.CodepushPromote.cs index 8adf3d1..a2a3f72 100644 --- a/src/Cake.AppCenter/Codepush/Promote/AppCenter.Alias.CodepushPromote.cs +++ b/src/Cake.AppCenter/Codepush/Promote/AppCenter.Alias.CodepushPromote.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushPromote(this ICakeContext context, AppCenterCodepushPromoteSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterCodepushPromote(this ICakeContext context, AppCenter /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushPromoteWithResult(this ICakeContext context, AppCenterCodepushPromoteSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/Release/AppCenter.Alias.CodepushRelease.cs b/src/Cake.AppCenter/Codepush/Release/AppCenter.Alias.CodepushRelease.cs index 78f87c4..616581d 100644 --- a/src/Cake.AppCenter/Codepush/Release/AppCenter.Alias.CodepushRelease.cs +++ b/src/Cake.AppCenter/Codepush/Release/AppCenter.Alias.CodepushRelease.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushRelease(this ICakeContext context, AppCenterCodepushReleaseSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterCodepushRelease(this ICakeContext context, AppCenter /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushReleaseWithResult(this ICakeContext context, AppCenterCodepushReleaseSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/ReleaseCordova/AppCenter.Alias.CodepushReleaseCordova.cs b/src/Cake.AppCenter/Codepush/ReleaseCordova/AppCenter.Alias.CodepushReleaseCordova.cs index 82ca293..1efdb18 100644 --- a/src/Cake.AppCenter/Codepush/ReleaseCordova/AppCenter.Alias.CodepushReleaseCordova.cs +++ b/src/Cake.AppCenter/Codepush/ReleaseCordova/AppCenter.Alias.CodepushReleaseCordova.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushReleaseCordova(this ICakeContext context, AppCenterCodepushReleaseCordovaSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterCodepushReleaseCordova(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushReleaseCordovaWithResult(this ICakeContext context, AppCenterCodepushReleaseCordovaSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenter.Alias.CodepushReleaseElectron.cs b/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenter.Alias.CodepushReleaseElectron.cs new file mode 100644 index 0000000..8ce0f7f --- /dev/null +++ b/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenter.Alias.CodepushReleaseElectron.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Release an Electron update to a deployment + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Codepush")] + public static void AppCenterCodepushReleaseElectron(this ICakeContext context, AppCenterCodepushReleaseElectronSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("codepush release-electron", settings ?? new AppCenterCodepushReleaseElectronSettings(), arguments); + } + + + /// + /// Release an Electron update to a deployment + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Codepush")] + public static IEnumerable AppCenterCodepushReleaseElectronWithResult(this ICakeContext context, AppCenterCodepushReleaseElectronSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("codepush release-electron", settings ?? new AppCenterCodepushReleaseElectronSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs b/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs new file mode 100644 index 0000000..5d70258 --- /dev/null +++ b/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs @@ -0,0 +1,139 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter codepush release-electron. + /// Release an Electron update to a deployment. + /// + [CompilerGenerated] + public sealed class AppCenterCodepushReleaseElectronSettings : AutoToolSettings + { + /// + /// --extra-bundler-option <arg> + /// Option that gets passed to webpack bundler. Can be specified multiple times + /// + public string ExtraBundlerOption { get; set; } + /// + /// -t|--target-binary-version <arg> + /// Semver expression that specifies the binary app version(s) this release is targeting (e.g. 1.1.0, ~1.2.3) + /// + public string TargetBinaryVersion { get; set; } + /// + /// -o|--output-dir <arg> + /// Output path for the bundle and sourcemap. If omitted, a bundle and sourcemap will not be generated + /// + public string OutputDir { get; set; } + /// + /// --sourcemap-output-dir <arg> + /// Path to directory where the sourcemap for the resulting bundle should be written. Name of sourcemap file will be generated automatically. This argument will be ignored if 'sourcemap-output' argument is provided. If 'sourcemap-output' and 'sourcemap-output-dir' are omitted, a sourcemap will not be generated + /// + public string SourcemapOutputDir { get; set; } + /// + /// -s|--sourcemap-output <arg> + /// Filename (including path) for the sourcemap of the resulting bundle. If 'sourcemap-output' and 'sourcemap-output-dir' are omitted, a sourcemap will not be generated + /// + public string SourcemapOutput { get; set; } + /// + /// -e|--entry-file <arg> + /// Path to the app's entry Javascript file. If omitted, "index.<platform>.js" and then "index.js" will be used (if they exist) + /// + public string EntryFile { get; set; } + /// + /// -c|--config <arg> + /// Path to the webpack config file. If omitted, "webpack.config.js" will be used (if they exist) + /// + public string Config { get; set; } + /// + /// --development + /// Specifies whether to generate a Development or Production build + /// + public bool? Development { get; set; } + /// + /// -b|--bundle-name <arg> + /// Name of the generated JS bundle file. If unspecified, the standard bundle name will be used 'index.electron.bundle' + /// + public string BundleName { get; set; } + /// + /// -r|--rollout <arg> + /// Percentage of users this release should be available to + /// + public string Rollout { get; set; } + /// + /// --disable-duplicate-release-error + /// When this flag is set, releasing a package that is identical to the latest release will produce a warning instead of an error + /// + public bool? DisableDuplicateReleaseError { get; set; } + /// + /// -k|--private-key-path <arg> + /// Specifies the location of a RSA private key to sign the release with.NOTICE: use it for react native applications only, client SDK on other platforms will be ignoring signature verification for now! + /// + public string PrivateKeyPath { get; set; } + /// + /// -m|--mandatory + /// Specifies whether this release should be considered mandatory + /// + public bool? Mandatory { get; set; } + /// + /// -x|--disabled + /// Specifies whether this release should be immediately downloadable + /// + public bool? Disabled { get; set; } + /// + /// --description <arg> + /// Description of the changes made to the app in this release + /// + public string Description { get; set; } + /// + /// -d|--deployment-name <arg> + /// Deployment to release the update to + /// + public string DeploymentName { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenter.Alias.CodepushReleaseReact.cs b/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenter.Alias.CodepushReleaseReact.cs index 46b3d98..4971d51 100644 --- a/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenter.Alias.CodepushReleaseReact.cs +++ b/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenter.Alias.CodepushReleaseReact.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushReleaseReact(this ICakeContext context, AppCenterCodepushReleaseReactSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterCodepushReleaseReact(this ICakeContext context, AppC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushReleaseReactWithResult(this ICakeContext context, AppCenterCodepushReleaseReactSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs b/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs index f88a454..7199471 100644 --- a/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs +++ b/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs @@ -10,6 +10,16 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterCodepushReleaseReactSettings : AutoToolSettings { + /// + /// --extra-hermes-flag <arg> + /// Flag that gets passed to Hermes, JavaScript to bytecode compiler. Can be specified multiple times + /// + public string ExtraHermesFlag { get; set; } + /// + /// --extra-bundler-option <arg> + /// Option that gets passed to react-native bundler. Can be specified multiple times + /// + public string ExtraBundlerOption { get; set; } /// /// -t|--target-binary-version <arg> /// Semver expression that specifies the binary app version(s) this release is targeting (e.g. 1.1.0, ~1.2.3) @@ -21,6 +31,11 @@ public sealed class AppCenterCodepushReleaseReactSettings : AutoToolSettings /// public string OutputDir { get; set; } /// + /// --sourcemap-output-dir <arg> + /// Path to folder where the sourcemap for the resulting bundle should be written. Name of sourcemap file will be generated automatically. This argument will be ignored if "sourcemap-output" argument is provided. If omitted, a sourcemap will not be generated + /// + public string SourcemapOutputDir { get; set; } + /// /// -s|--sourcemap-output <arg> /// Path to where the sourcemap for the resulting bundle should be written. If omitted, a sourcemap will not be generated /// diff --git a/src/Cake.AppCenter/Codepush/Rollback/AppCenter.Alias.CodepushRollback.cs b/src/Cake.AppCenter/Codepush/Rollback/AppCenter.Alias.CodepushRollback.cs index c86643e..8d48e09 100644 --- a/src/Cake.AppCenter/Codepush/Rollback/AppCenter.Alias.CodepushRollback.cs +++ b/src/Cake.AppCenter/Codepush/Rollback/AppCenter.Alias.CodepushRollback.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static void AppCenterCodepushRollback(this ICakeContext context, AppCenterCodepushRollbackSettings settings, string deploymentName) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCodepushRollback(this ICakeContext context, AppCente /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Codepush")] public static IEnumerable AppCenterCodepushRollbackWithResult(this ICakeContext context, AppCenterCodepushRollbackSettings settings, string deploymentName) { if (context == null) diff --git a/src/Cake.AppCenter/Crashes/UploadMappings/AppCenter.Alias.CrashesUploadMappings.cs b/src/Cake.AppCenter/Crashes/UploadMappings/AppCenter.Alias.CrashesUploadMappings.cs new file mode 100644 index 0000000..318519a --- /dev/null +++ b/src/Cake.AppCenter/Crashes/UploadMappings/AppCenter.Alias.CrashesUploadMappings.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Upload the Android mappings for the application + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Crashes")] + public static void AppCenterCrashesUploadMappings(this ICakeContext context, AppCenterCrashesUploadMappingsSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("crashes upload-mappings", settings ?? new AppCenterCrashesUploadMappingsSettings(), arguments); + } + + + /// + /// Upload the Android mappings for the application + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Crashes")] + public static IEnumerable AppCenterCrashesUploadMappingsWithResult(this ICakeContext context, AppCenterCrashesUploadMappingsSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("crashes upload-mappings", settings ?? new AppCenterCrashesUploadMappingsSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Crashes/UploadMappings/AppCenterCrashesUploadMappingsSettings.cs b/src/Cake.AppCenter/Crashes/UploadMappings/AppCenterCrashesUploadMappingsSettings.cs new file mode 100644 index 0000000..bccf65b --- /dev/null +++ b/src/Cake.AppCenter/Crashes/UploadMappings/AppCenterCrashesUploadMappingsSettings.cs @@ -0,0 +1,74 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter crashes upload-mappings. + /// Upload the Android mappings for the application. + /// + [CompilerGenerated] + public sealed class AppCenterCrashesUploadMappingsSettings : AutoToolSettings + { + /// + /// -c|--version-code <arg> + /// The version code to associate with the mappings. + /// + public string VersionCode { get; set; } + /// + /// -n|--version-name <arg> + /// The version name to associate with the mappings. + /// + public string VersionName { get; set; } + /// + /// -m|--mapping <arg> + /// Path to an Android mapping.txt file. + /// + public string Mapping { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Crashes/UploadMissingSymbols/AppCenter.Alias.CrashesUploadMissingSymbols.cs b/src/Cake.AppCenter/Crashes/UploadMissingSymbols/AppCenter.Alias.CrashesUploadMissingSymbols.cs index c5b4bed..2bf9782 100644 --- a/src/Cake.AppCenter/Crashes/UploadMissingSymbols/AppCenter.Alias.CrashesUploadMissingSymbols.cs +++ b/src/Cake.AppCenter/Crashes/UploadMissingSymbols/AppCenter.Alias.CrashesUploadMissingSymbols.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Crashes")] public static void AppCenterCrashesUploadMissingSymbols(this ICakeContext context, AppCenterCrashesUploadMissingSymbolsSettings settings, string searchPath) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterCrashesUploadMissingSymbols(this ICakeContext contex /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Crashes")] public static IEnumerable AppCenterCrashesUploadMissingSymbolsWithResult(this ICakeContext context, AppCenterCrashesUploadMissingSymbolsSettings settings, string searchPath) { if (context == null) diff --git a/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenter.Alias.CrashesUploadSymbols.cs b/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenter.Alias.CrashesUploadSymbols.cs index e9a5a72..9979158 100644 --- a/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenter.Alias.CrashesUploadSymbols.cs +++ b/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenter.Alias.CrashesUploadSymbols.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Crashes")] public static void AppCenterCrashesUploadSymbols(this ICakeContext context, AppCenterCrashesUploadSymbolsSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterCrashesUploadSymbols(this ICakeContext context, AppC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Crashes")] public static IEnumerable AppCenterCrashesUploadSymbolsWithResult(this ICakeContext context, AppCenterCrashesUploadSymbolsSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenterCrashesUploadSymbolsSettings.cs b/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenterCrashesUploadSymbolsSettings.cs index abd12e2..0ed5633 100644 --- a/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenterCrashesUploadSymbolsSettings.cs +++ b/src/Cake.AppCenter/Crashes/UploadSymbols/AppCenterCrashesUploadSymbolsSettings.cs @@ -10,9 +10,19 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterCrashesUploadSymbolsSettings : AutoToolSettings { + /// + /// --appxsym <arg> + /// Path to an appxsym file containing UWP symbols. + /// + public string Appxsym { get; set; } + /// + /// -b|--breakpad <arg> + /// Path to a zip file containing Breakpad symbols, or native binaries from which to generate Breakpad symbols. + /// + public string Breakpad { get; set; } /// /// -m|--sourcemap <arg> - /// Path to a React Native sourcemap file. Only supported in combination with --symbol or --xcarchive + /// Path to a React Native sourcemap file. Only supported in combination with --symbol or --xcarchive. /// public string Sourcemap { get; set; } /// diff --git a/src/Cake.AppCenter/Distribute/Groups/Create/AppCenter.Alias.DistributeGroupsCreate.cs b/src/Cake.AppCenter/Distribute/Groups/Create/AppCenter.Alias.DistributeGroupsCreate.cs index 27cb55d..88a23f7 100644 --- a/src/Cake.AppCenter/Distribute/Groups/Create/AppCenter.Alias.DistributeGroupsCreate.cs +++ b/src/Cake.AppCenter/Distribute/Groups/Create/AppCenter.Alias.DistributeGroupsCreate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeGroupsCreate(this ICakeContext context, AppCenterDistributeGroupsCreateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeGroupsCreate(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeGroupsCreateWithResult(this ICakeContext context, AppCenterDistributeGroupsCreateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Groups/Delete/AppCenter.Alias.DistributeGroupsDelete.cs b/src/Cake.AppCenter/Distribute/Groups/Delete/AppCenter.Alias.DistributeGroupsDelete.cs index bc9a58d..d18bc9b 100644 --- a/src/Cake.AppCenter/Distribute/Groups/Delete/AppCenter.Alias.DistributeGroupsDelete.cs +++ b/src/Cake.AppCenter/Distribute/Groups/Delete/AppCenter.Alias.DistributeGroupsDelete.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeGroupsDelete(this ICakeContext context, AppCenterDistributeGroupsDeleteSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeGroupsDelete(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeGroupsDeleteWithResult(this ICakeContext context, AppCenterDistributeGroupsDeleteSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Groups/Download/AppCenter.Alias.DistributeGroupsDownload.cs b/src/Cake.AppCenter/Distribute/Groups/Download/AppCenter.Alias.DistributeGroupsDownload.cs index ed17c5f..6736a16 100644 --- a/src/Cake.AppCenter/Distribute/Groups/Download/AppCenter.Alias.DistributeGroupsDownload.cs +++ b/src/Cake.AppCenter/Distribute/Groups/Download/AppCenter.Alias.DistributeGroupsDownload.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeGroupsDownload(this ICakeContext context, AppCenterDistributeGroupsDownloadSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeGroupsDownload(this ICakeContext context, /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeGroupsDownloadWithResult(this ICakeContext context, AppCenterDistributeGroupsDownloadSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Groups/List/AppCenter.Alias.DistributeGroupsList.cs b/src/Cake.AppCenter/Distribute/Groups/List/AppCenter.Alias.DistributeGroupsList.cs index 951e879..cbab26b 100644 --- a/src/Cake.AppCenter/Distribute/Groups/List/AppCenter.Alias.DistributeGroupsList.cs +++ b/src/Cake.AppCenter/Distribute/Groups/List/AppCenter.Alias.DistributeGroupsList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeGroupsList(this ICakeContext context, AppCenterDistributeGroupsListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeGroupsList(this ICakeContext context, AppC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeGroupsListWithResult(this ICakeContext context, AppCenterDistributeGroupsListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Groups/Show/AppCenter.Alias.DistributeGroupsShow.cs b/src/Cake.AppCenter/Distribute/Groups/Show/AppCenter.Alias.DistributeGroupsShow.cs index 536ab56..acc834a 100644 --- a/src/Cake.AppCenter/Distribute/Groups/Show/AppCenter.Alias.DistributeGroupsShow.cs +++ b/src/Cake.AppCenter/Distribute/Groups/Show/AppCenter.Alias.DistributeGroupsShow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeGroupsShow(this ICakeContext context, AppCenterDistributeGroupsShowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeGroupsShow(this ICakeContext context, AppC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeGroupsShowWithResult(this ICakeContext context, AppCenterDistributeGroupsShowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Groups/Update/AppCenter.Alias.DistributeGroupsUpdate.cs b/src/Cake.AppCenter/Distribute/Groups/Update/AppCenter.Alias.DistributeGroupsUpdate.cs index bb095d2..eb99ded 100644 --- a/src/Cake.AppCenter/Distribute/Groups/Update/AppCenter.Alias.DistributeGroupsUpdate.cs +++ b/src/Cake.AppCenter/Distribute/Groups/Update/AppCenter.Alias.DistributeGroupsUpdate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeGroupsUpdate(this ICakeContext context, AppCenterDistributeGroupsUpdateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeGroupsUpdate(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeGroupsUpdateWithResult(this ICakeContext context, AppCenterDistributeGroupsUpdateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Release/AppCenter.Alias.DistributeRelease.cs b/src/Cake.AppCenter/Distribute/Release/AppCenter.Alias.DistributeRelease.cs index 2d98377..164c18b 100644 --- a/src/Cake.AppCenter/Distribute/Release/AppCenter.Alias.DistributeRelease.cs +++ b/src/Cake.AppCenter/Distribute/Release/AppCenter.Alias.DistributeRelease.cs @@ -8,12 +8,13 @@ namespace Cake.AppCenter partial class AppCenterAliases { /// - /// Upload release binary and trigger distribution + /// Upload release binary and trigger distribution, at least one of --store or --group must be specified /// /// The context. /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeRelease(this ICakeContext context, AppCenterDistributeReleaseSettings settings) { if (context == null) @@ -27,12 +28,13 @@ public static void AppCenterDistributeRelease(this ICakeContext context, AppCent /// - /// Upload release binary and trigger distribution + /// Upload release binary and trigger distribution, at least one of --store or --group must be specified /// /// The context. /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeReleaseWithResult(this ICakeContext context, AppCenterDistributeReleaseSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs b/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs index d73d174..4dc4a4a 100644 --- a/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs +++ b/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs @@ -5,22 +5,22 @@ namespace Cake.AppCenter { /// /// Settings for appcenter distribute release. - /// Upload release binary and trigger distribution. + /// Upload release binary and trigger distribution, at least one of --store or --group must be specified. /// [CompilerGenerated] public sealed class AppCenterDistributeReleaseSettings : AutoToolSettings { - /// - /// -g|--group <arg> - /// Distribution group name - /// - public string Group { get; set; } /// /// -f|--file <arg> /// Path to binary file /// public string File { get; set; } /// + /// --silent + /// Do not notify testers of this release + /// + public bool? Silent { get; set; } + /// /// -R|--release-notes-file <arg> /// Path to release notes file /// @@ -31,6 +31,26 @@ public sealed class AppCenterDistributeReleaseSettings : AutoToolSettings /// public string ReleaseNotes { get; set; } /// + /// -s|--store <arg> + /// Store name + /// + public string Store { get; set; } + /// + /// -g|--group <arg> + /// Distribution group name + /// + public string Group { get; set; } + /// + /// -n|--build-number <arg> + /// Build number parameter required for macOS .pkg and .dmg files + /// + public string BuildNumber { get; set; } + /// + /// -b|--build-version <arg> + /// Build version parameter required for .zip, .msi, .pkg and .dmg files + /// + public string BuildVersion { get; set; } + /// /// -a|--app <arg> /// Specify app in the <ownerName>/<appName> format /// diff --git a/src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenter.Alias.DistributeReleasesAddDestination.cs b/src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenter.Alias.DistributeReleasesAddDestination.cs new file mode 100644 index 0000000..2ca6c71 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenter.Alias.DistributeReleasesAddDestination.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Distribute an existing release to an additional destination + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static void AppCenterDistributeReleasesAddDestination(this ICakeContext context, AppCenterDistributeReleasesAddDestinationSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("distribute releases add-destination", settings ?? new AppCenterDistributeReleasesAddDestinationSettings(), arguments); + } + + + /// + /// Distribute an existing release to an additional destination + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static IEnumerable AppCenterDistributeReleasesAddDestinationWithResult(this ICakeContext context, AppCenterDistributeReleasesAddDestinationSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("distribute releases add-destination", settings ?? new AppCenterDistributeReleasesAddDestinationSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenterDistributeReleasesAddDestinationSettings.cs b/src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenterDistributeReleasesAddDestinationSettings.cs new file mode 100644 index 0000000..f4f9990 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Releases/AddDestination/AppCenterDistributeReleasesAddDestinationSettings.cs @@ -0,0 +1,84 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter distribute releases add-destination. + /// Distribute an existing release to an additional destination. + /// + [CompilerGenerated] + public sealed class AppCenterDistributeReleasesAddDestinationSettings : AutoToolSettings + { + /// + /// -d|--destination <arg> + /// The name of the store or group, or the email of the tester + /// + public string Destination { get; set; } + /// + /// -t|--type <arg> + /// The type of destination: [store, group, tester] + /// + public string Type { get; set; } + /// + /// -r|--release-id <arg> + /// The ID of the release + /// + public string ReleaseId { get; set; } + /// + /// -s|--silent + /// If set, do not send a notification to the testers (Not used for stores) + /// + public bool? Silent { get; set; } + /// + /// -m|--mandatory + /// Whether the release is mandatory for the testers (Not used for stores) + /// + public bool? Mandatory { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Distribute/Releases/Delete/AppCenter.Alias.DistributeReleasesDelete.cs b/src/Cake.AppCenter/Distribute/Releases/Delete/AppCenter.Alias.DistributeReleasesDelete.cs index fba4244..dd55f4d 100644 --- a/src/Cake.AppCenter/Distribute/Releases/Delete/AppCenter.Alias.DistributeReleasesDelete.cs +++ b/src/Cake.AppCenter/Distribute/Releases/Delete/AppCenter.Alias.DistributeReleasesDelete.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeReleasesDelete(this ICakeContext context, AppCenterDistributeReleasesDeleteSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeReleasesDelete(this ICakeContext context, /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeReleasesDeleteWithResult(this ICakeContext context, AppCenterDistributeReleasesDeleteSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Releases/Edit/AppCenter.Alias.DistributeReleasesEdit.cs b/src/Cake.AppCenter/Distribute/Releases/Edit/AppCenter.Alias.DistributeReleasesEdit.cs new file mode 100644 index 0000000..2ec6325 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Releases/Edit/AppCenter.Alias.DistributeReleasesEdit.cs @@ -0,0 +1,58 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Toggles enabling and disabling the specified release + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static void AppCenterDistributeReleasesEdit(this ICakeContext context, AppCenterDistributeReleasesEditSettings settings, string state) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + if (string.IsNullOrEmpty(state)) + { + throw new ArgumentNullException(nameof(state)); + } + var arguments = new string[] { state }; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("distribute releases edit", settings ?? new AppCenterDistributeReleasesEditSettings(), arguments); + } + + + /// + /// Toggles enabling and disabling the specified release + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static IEnumerable AppCenterDistributeReleasesEditWithResult(this ICakeContext context, AppCenterDistributeReleasesEditSettings settings, string state) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + if (string.IsNullOrEmpty(state)) + { + throw new ArgumentNullException(nameof(state)); + } + var arguments = new string[] { state }; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("distribute releases edit", settings ?? new AppCenterDistributeReleasesEditSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Distribute/Releases/Edit/AppCenterDistributeReleasesEditSettings.cs b/src/Cake.AppCenter/Distribute/Releases/Edit/AppCenterDistributeReleasesEditSettings.cs new file mode 100644 index 0000000..3edf1c8 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Releases/Edit/AppCenterDistributeReleasesEditSettings.cs @@ -0,0 +1,64 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter distribute releases edit. + /// Toggles enabling and disabling the specified release. + /// + [CompilerGenerated] + public sealed class AppCenterDistributeReleasesEditSettings : AutoToolSettings + { + /// + /// -r|--release-id <arg> + /// Release ID + /// + public string ReleaseId { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Distribute/Releases/List/AppCenter.Alias.DistributeReleasesList.cs b/src/Cake.AppCenter/Distribute/Releases/List/AppCenter.Alias.DistributeReleasesList.cs index 86cc996..d52a9ac 100644 --- a/src/Cake.AppCenter/Distribute/Releases/List/AppCenter.Alias.DistributeReleasesList.cs +++ b/src/Cake.AppCenter/Distribute/Releases/List/AppCenter.Alias.DistributeReleasesList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeReleasesList(this ICakeContext context, AppCenterDistributeReleasesListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeReleasesList(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeReleasesListWithResult(this ICakeContext context, AppCenterDistributeReleasesListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Releases/Show/AppCenter.Alias.DistributeReleasesShow.cs b/src/Cake.AppCenter/Distribute/Releases/Show/AppCenter.Alias.DistributeReleasesShow.cs index 32ac5d9..fa0c686 100644 --- a/src/Cake.AppCenter/Distribute/Releases/Show/AppCenter.Alias.DistributeReleasesShow.cs +++ b/src/Cake.AppCenter/Distribute/Releases/Show/AppCenter.Alias.DistributeReleasesShow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static void AppCenterDistributeReleasesShow(this ICakeContext context, AppCenterDistributeReleasesShowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterDistributeReleasesShow(this ICakeContext context, Ap /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Distribute")] public static IEnumerable AppCenterDistributeReleasesShowWithResult(this ICakeContext context, AppCenterDistributeReleasesShowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Distribute/Stores/List/AppCenter.Alias.DistributeStoresList.cs b/src/Cake.AppCenter/Distribute/Stores/List/AppCenter.Alias.DistributeStoresList.cs new file mode 100644 index 0000000..813b69d --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Stores/List/AppCenter.Alias.DistributeStoresList.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Lists all stores of the app + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static void AppCenterDistributeStoresList(this ICakeContext context, AppCenterDistributeStoresListSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("distribute stores list", settings ?? new AppCenterDistributeStoresListSettings(), arguments); + } + + + /// + /// Lists all stores of the app + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static IEnumerable AppCenterDistributeStoresListWithResult(this ICakeContext context, AppCenterDistributeStoresListSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("distribute stores list", settings ?? new AppCenterDistributeStoresListSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Distribute/Stores/List/AppCenterDistributeStoresListSettings.cs b/src/Cake.AppCenter/Distribute/Stores/List/AppCenterDistributeStoresListSettings.cs new file mode 100644 index 0000000..2c062d5 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Stores/List/AppCenterDistributeStoresListSettings.cs @@ -0,0 +1,59 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter distribute stores list. + /// Lists all stores of the app. + /// + [CompilerGenerated] + public sealed class AppCenterDistributeStoresListSettings : AutoToolSettings + { + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Login/AppCenter.Alias.Login.cs b/src/Cake.AppCenter/Login/AppCenter.Alias.Login.cs index bcb5709..82aca41 100644 --- a/src/Cake.AppCenter/Login/AppCenter.Alias.Login.cs +++ b/src/Cake.AppCenter/Login/AppCenter.Alias.Login.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Login")] public static void AppCenterLogin(this ICakeContext context, AppCenterLoginSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterLogin(this ICakeContext context, AppCenterLoginSetti /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Login")] public static IEnumerable AppCenterLoginWithResult(this ICakeContext context, AppCenterLoginSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Logout/AppCenter.Alias.Logout.cs b/src/Cake.AppCenter/Logout/AppCenter.Alias.Logout.cs index b0ce28d..d5c4570 100644 --- a/src/Cake.AppCenter/Logout/AppCenter.Alias.Logout.cs +++ b/src/Cake.AppCenter/Logout/AppCenter.Alias.Logout.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Logout")] public static void AppCenterLogout(this ICakeContext context, AppCenterLogoutSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterLogout(this ICakeContext context, AppCenterLogoutSet /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Logout")] public static IEnumerable AppCenterLogoutWithResult(this ICakeContext context, AppCenterLogoutSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/Apps/List/AppCenter.Alias.OrgsAppsList.cs b/src/Cake.AppCenter/Orgs/Apps/List/AppCenter.Alias.OrgsAppsList.cs index 369948f..2e1254a 100644 --- a/src/Cake.AppCenter/Orgs/Apps/List/AppCenter.Alias.OrgsAppsList.cs +++ b/src/Cake.AppCenter/Orgs/Apps/List/AppCenter.Alias.OrgsAppsList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsAppsList(this ICakeContext context, AppCenterOrgsAppsListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsAppsList(this ICakeContext context, AppCenterOrg /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsAppsListWithResult(this ICakeContext context, AppCenterOrgsAppsListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/Collaborators/List/AppCenter.Alias.OrgsCollaboratorsList.cs b/src/Cake.AppCenter/Orgs/Collaborators/List/AppCenter.Alias.OrgsCollaboratorsList.cs index fbabc45..0257021 100644 --- a/src/Cake.AppCenter/Orgs/Collaborators/List/AppCenter.Alias.OrgsCollaboratorsList.cs +++ b/src/Cake.AppCenter/Orgs/Collaborators/List/AppCenter.Alias.OrgsCollaboratorsList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsCollaboratorsList(this ICakeContext context, AppCenterOrgsCollaboratorsListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsCollaboratorsList(this ICakeContext context, App /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsCollaboratorsListWithResult(this ICakeContext context, AppCenterOrgsCollaboratorsListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/Collaborators/Update/AppCenter.Alias.OrgsCollaboratorsUpdate.cs b/src/Cake.AppCenter/Orgs/Collaborators/Update/AppCenter.Alias.OrgsCollaboratorsUpdate.cs index 8f37b86..93a8c60 100644 --- a/src/Cake.AppCenter/Orgs/Collaborators/Update/AppCenter.Alias.OrgsCollaboratorsUpdate.cs +++ b/src/Cake.AppCenter/Orgs/Collaborators/Update/AppCenter.Alias.OrgsCollaboratorsUpdate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsCollaboratorsUpdate(this ICakeContext context, AppCenterOrgsCollaboratorsUpdateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsCollaboratorsUpdate(this ICakeContext context, A /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsCollaboratorsUpdateWithResult(this ICakeContext context, AppCenterOrgsCollaboratorsUpdateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/Create/AppCenter.Alias.OrgsCreate.cs b/src/Cake.AppCenter/Orgs/Create/AppCenter.Alias.OrgsCreate.cs index 03ebb86..1ec9863 100644 --- a/src/Cake.AppCenter/Orgs/Create/AppCenter.Alias.OrgsCreate.cs +++ b/src/Cake.AppCenter/Orgs/Create/AppCenter.Alias.OrgsCreate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsCreate(this ICakeContext context, AppCenterOrgsCreateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsCreate(this ICakeContext context, AppCenterOrgsC /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsCreateWithResult(this ICakeContext context, AppCenterOrgsCreateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/List/AppCenter.Alias.OrgsList.cs b/src/Cake.AppCenter/Orgs/List/AppCenter.Alias.OrgsList.cs index e427c0f..6cf2512 100644 --- a/src/Cake.AppCenter/Orgs/List/AppCenter.Alias.OrgsList.cs +++ b/src/Cake.AppCenter/Orgs/List/AppCenter.Alias.OrgsList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsList(this ICakeContext context, AppCenterOrgsListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsList(this ICakeContext context, AppCenterOrgsLis /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsListWithResult(this ICakeContext context, AppCenterOrgsListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/Show/AppCenter.Alias.OrgsShow.cs b/src/Cake.AppCenter/Orgs/Show/AppCenter.Alias.OrgsShow.cs index 7755875..b533ac9 100644 --- a/src/Cake.AppCenter/Orgs/Show/AppCenter.Alias.OrgsShow.cs +++ b/src/Cake.AppCenter/Orgs/Show/AppCenter.Alias.OrgsShow.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsShow(this ICakeContext context, AppCenterOrgsShowSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsShow(this ICakeContext context, AppCenterOrgsSho /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsShowWithResult(this ICakeContext context, AppCenterOrgsShowSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Orgs/Update/AppCenter.Alias.OrgsUpdate.cs b/src/Cake.AppCenter/Orgs/Update/AppCenter.Alias.OrgsUpdate.cs index 1a42387..dc1cf14 100644 --- a/src/Cake.AppCenter/Orgs/Update/AppCenter.Alias.OrgsUpdate.cs +++ b/src/Cake.AppCenter/Orgs/Update/AppCenter.Alias.OrgsUpdate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static void AppCenterOrgsUpdate(this ICakeContext context, AppCenterOrgsUpdateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterOrgsUpdate(this ICakeContext context, AppCenterOrgsU /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Orgs")] public static IEnumerable AppCenterOrgsUpdateWithResult(this ICakeContext context, AppCenterOrgsUpdateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Profile/List/AppCenter.Alias.ProfileList.cs b/src/Cake.AppCenter/Profile/List/AppCenter.Alias.ProfileList.cs index 57a3fa9..b052425 100644 --- a/src/Cake.AppCenter/Profile/List/AppCenter.Alias.ProfileList.cs +++ b/src/Cake.AppCenter/Profile/List/AppCenter.Alias.ProfileList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Profile")] public static void AppCenterProfileList(this ICakeContext context, AppCenterProfileListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterProfileList(this ICakeContext context, AppCenterProf /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Profile")] public static IEnumerable AppCenterProfileListWithResult(this ICakeContext context, AppCenterProfileListSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Profile/Update/AppCenter.Alias.ProfileUpdate.cs b/src/Cake.AppCenter/Profile/Update/AppCenter.Alias.ProfileUpdate.cs index 2a158f2..da7adc0 100644 --- a/src/Cake.AppCenter/Profile/Update/AppCenter.Alias.ProfileUpdate.cs +++ b/src/Cake.AppCenter/Profile/Update/AppCenter.Alias.ProfileUpdate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Profile")] public static void AppCenterProfileUpdate(this ICakeContext context, AppCenterProfileUpdateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterProfileUpdate(this ICakeContext context, AppCenterPr /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Profile")] public static IEnumerable AppCenterProfileUpdateWithResult(this ICakeContext context, AppCenterProfileUpdateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/SetupAutocomplete/AppCenter.Alias.SetupAutocomplete.cs b/src/Cake.AppCenter/SetupAutocomplete/AppCenter.Alias.SetupAutocomplete.cs index d854f60..361812e 100644 --- a/src/Cake.AppCenter/SetupAutocomplete/AppCenter.Alias.SetupAutocomplete.cs +++ b/src/Cake.AppCenter/SetupAutocomplete/AppCenter.Alias.SetupAutocomplete.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Setup Autocomplete")] public static void AppCenterSetupAutocomplete(this ICakeContext context, AppCenterSetupAutocompleteSettings settings, string shellProfilePath) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterSetupAutocomplete(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Setup Autocomplete")] public static IEnumerable AppCenterSetupAutocompleteWithResult(this ICakeContext context, AppCenterSetupAutocompleteSettings settings, string shellProfilePath) { if (context == null) diff --git a/src/Cake.AppCenter/Telemetry/Off/AppCenter.Alias.TelemetryOff.cs b/src/Cake.AppCenter/Telemetry/Off/AppCenter.Alias.TelemetryOff.cs index fcf7999..bdb8269 100644 --- a/src/Cake.AppCenter/Telemetry/Off/AppCenter.Alias.TelemetryOff.cs +++ b/src/Cake.AppCenter/Telemetry/Off/AppCenter.Alias.TelemetryOff.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Telemetry")] public static void AppCenterTelemetryOff(this ICakeContext context, AppCenterTelemetryOffSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTelemetryOff(this ICakeContext context, AppCenterTel /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Telemetry")] public static IEnumerable AppCenterTelemetryOffWithResult(this ICakeContext context, AppCenterTelemetryOffSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Telemetry/On/AppCenter.Alias.TelemetryOn.cs b/src/Cake.AppCenter/Telemetry/On/AppCenter.Alias.TelemetryOn.cs index f0fa3f1..a82208a 100644 --- a/src/Cake.AppCenter/Telemetry/On/AppCenter.Alias.TelemetryOn.cs +++ b/src/Cake.AppCenter/Telemetry/On/AppCenter.Alias.TelemetryOn.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Telemetry")] public static void AppCenterTelemetryOn(this ICakeContext context, AppCenterTelemetryOnSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTelemetryOn(this ICakeContext context, AppCenterTele /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Telemetry")] public static IEnumerable AppCenterTelemetryOnWithResult(this ICakeContext context, AppCenterTelemetryOnSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Download/AppCenter.Alias.TestDownload.cs b/src/Cake.AppCenter/Test/Download/AppCenter.Alias.TestDownload.cs index d73cbc8..125e47a 100644 --- a/src/Cake.AppCenter/Test/Download/AppCenter.Alias.TestDownload.cs +++ b/src/Cake.AppCenter/Test/Download/AppCenter.Alias.TestDownload.cs @@ -8,12 +8,13 @@ namespace Cake.AppCenter partial class AppCenterAliases { /// - /// Download the report artifacts, unpack and merge them. + /// Download the report artifacts, unpack and merge them. This command is only available for UITest and Appium test runs. /// /// The context. /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestDownload(this ICakeContext context, AppCenterTestDownloadSettings settings) { if (context == null) @@ -27,12 +28,13 @@ public static void AppCenterTestDownload(this ICakeContext context, AppCenterTes /// - /// Download the report artifacts, unpack and merge them. + /// Download the report artifacts, unpack and merge them. This command is only available for UITest and Appium test runs. /// /// The context. /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestDownloadWithResult(this ICakeContext context, AppCenterTestDownloadSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Download/AppCenterTestDownloadSettings.cs b/src/Cake.AppCenter/Test/Download/AppCenterTestDownloadSettings.cs index 503ed5d..70afaf9 100644 --- a/src/Cake.AppCenter/Test/Download/AppCenterTestDownloadSettings.cs +++ b/src/Cake.AppCenter/Test/Download/AppCenterTestDownloadSettings.cs @@ -5,7 +5,7 @@ namespace Cake.AppCenter { /// /// Settings for appcenter test download. - /// Download the report artifacts, unpack and merge them.. + /// Download the report artifacts, unpack and merge them. This command is only available for UITest and Appium test runs.. /// [CompilerGenerated] public sealed class AppCenterTestDownloadSettings : AutoToolSettings diff --git a/src/Cake.AppCenter/Test/Generate/Appium/AppCenter.Alias.TestGenerateAppium.cs b/src/Cake.AppCenter/Test/Generate/Appium/AppCenter.Alias.TestGenerateAppium.cs index d2a5721..8d5ace6 100644 --- a/src/Cake.AppCenter/Test/Generate/Appium/AppCenter.Alias.TestGenerateAppium.cs +++ b/src/Cake.AppCenter/Test/Generate/Appium/AppCenter.Alias.TestGenerateAppium.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestGenerateAppium(this ICakeContext context, AppCenterTestGenerateAppiumSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestGenerateAppium(this ICakeContext context, AppCen /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestGenerateAppiumWithResult(this ICakeContext context, AppCenterTestGenerateAppiumSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Generate/Uitest/AppCenter.Alias.TestGenerateUitest.cs b/src/Cake.AppCenter/Test/Generate/Uitest/AppCenter.Alias.TestGenerateUitest.cs index e6eac86..3e0da3a 100644 --- a/src/Cake.AppCenter/Test/Generate/Uitest/AppCenter.Alias.TestGenerateUitest.cs +++ b/src/Cake.AppCenter/Test/Generate/Uitest/AppCenter.Alias.TestGenerateUitest.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestGenerateUitest(this ICakeContext context, AppCenterTestGenerateUitestSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestGenerateUitest(this ICakeContext context, AppCen /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestGenerateUitestWithResult(this ICakeContext context, AppCenterTestGenerateUitestSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Prepare/Appium/AppCenter.Alias.TestPrepareAppium.cs b/src/Cake.AppCenter/Test/Prepare/Appium/AppCenter.Alias.TestPrepareAppium.cs index 00fb087..bbdc402 100644 --- a/src/Cake.AppCenter/Test/Prepare/Appium/AppCenter.Alias.TestPrepareAppium.cs +++ b/src/Cake.AppCenter/Test/Prepare/Appium/AppCenter.Alias.TestPrepareAppium.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestPrepareAppium(this ICakeContext context, AppCenterTestPrepareAppiumSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestPrepareAppium(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestPrepareAppiumWithResult(this ICakeContext context, AppCenterTestPrepareAppiumSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Prepare/Calabash/AppCenter.Alias.TestPrepareCalabash.cs b/src/Cake.AppCenter/Test/Prepare/Calabash/AppCenter.Alias.TestPrepareCalabash.cs index 216fe2f..67be0f1 100644 --- a/src/Cake.AppCenter/Test/Prepare/Calabash/AppCenter.Alias.TestPrepareCalabash.cs +++ b/src/Cake.AppCenter/Test/Prepare/Calabash/AppCenter.Alias.TestPrepareCalabash.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestPrepareCalabash(this ICakeContext context, AppCenterTestPrepareCalabashSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestPrepareCalabash(this ICakeContext context, AppCe /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestPrepareCalabashWithResult(this ICakeContext context, AppCenterTestPrepareCalabashSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenter.Alias.TestPrepareEspresso.cs b/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenter.Alias.TestPrepareEspresso.cs index f51497d..3d77449 100644 --- a/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenter.Alias.TestPrepareEspresso.cs +++ b/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenter.Alias.TestPrepareEspresso.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestPrepareEspresso(this ICakeContext context, AppCenterTestPrepareEspressoSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestPrepareEspresso(this ICakeContext context, AppCe /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestPrepareEspressoWithResult(this ICakeContext context, AppCenterTestPrepareEspressoSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenterTestPrepareEspressoSettings.cs b/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenterTestPrepareEspressoSettings.cs index cf5acd4..c2bf0a6 100644 --- a/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenterTestPrepareEspressoSettings.cs +++ b/src/Cake.AppCenter/Test/Prepare/Espresso/AppCenterTestPrepareEspressoSettings.cs @@ -32,7 +32,7 @@ public sealed class AppCenterTestPrepareEspressoSettings : AutoToolSettings public string TestParameter { get; set; } /// /// --include <arg> - /// Additional files and directories to include. The value must be either path relative to the input directory, or be in format "targetDir=sourceDir" + /// Attribute is not supported for Espresso /// public string Include { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenter.Alias.TestPrepareUitest.cs b/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenter.Alias.TestPrepareUitest.cs index ccaef6a..14eee09 100644 --- a/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenter.Alias.TestPrepareUitest.cs +++ b/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenter.Alias.TestPrepareUitest.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestPrepareUitest(this ICakeContext context, AppCenterTestPrepareUitestSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestPrepareUitest(this ICakeContext context, AppCent /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestPrepareUitestWithResult(this ICakeContext context, AppCenterTestPrepareUitestSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenter.Alias.TestPrepareXcuitest.cs b/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenter.Alias.TestPrepareXcuitest.cs index 2d58fd1..0c02ddb 100644 --- a/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenter.Alias.TestPrepareXcuitest.cs +++ b/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenter.Alias.TestPrepareXcuitest.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestPrepareXcuitest(this ICakeContext context, AppCenterTestPrepareXcuitestSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestPrepareXcuitest(this ICakeContext context, AppCe /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestPrepareXcuitestWithResult(this ICakeContext context, AppCenterTestPrepareXcuitestSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenterTestPrepareXcuitestSettings.cs b/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenterTestPrepareXcuitestSettings.cs index 6728b21..aa3c448 100644 --- a/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenterTestPrepareXcuitestSettings.cs +++ b/src/Cake.AppCenter/Test/Prepare/Xcuitest/AppCenterTestPrepareXcuitestSettings.cs @@ -32,7 +32,7 @@ public sealed class AppCenterTestPrepareXcuitestSettings : AutoToolSettings public string TestParameter { get; set; } /// /// --include <arg> - /// Additional files and directories to include. The value must be either path relative to the input directory, or be in format "targetDir=sourceDir" + /// Attribute is not supported for XCUITest /// public string Include { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Appium/AppCenter.Alias.TestRunAppium.cs b/src/Cake.AppCenter/Test/Run/Appium/AppCenter.Alias.TestRunAppium.cs index b48d8d2..825329d 100644 --- a/src/Cake.AppCenter/Test/Run/Appium/AppCenter.Alias.TestRunAppium.cs +++ b/src/Cake.AppCenter/Test/Run/Appium/AppCenter.Alias.TestRunAppium.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestRunAppium(this ICakeContext context, AppCenterTestRunAppiumSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestRunAppium(this ICakeContext context, AppCenterTe /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestRunAppiumWithResult(this ICakeContext context, AppCenterTestRunAppiumSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs b/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs index 233987e..83eece9 100644 --- a/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs @@ -22,12 +22,12 @@ public sealed class AppCenterTestRunAppiumSettings : AutoToolSettings public string Devices { get; set; } /// /// --merge-junit-xml <arg> - /// Merge the xml files in to the <output.xml> file. This parameter won't work when you run using --async because we have to wait for test results + /// Merge the xml files in to the <arg> file. This parameter won't work when you run using --async because we have to wait for test results /// public string MergeJunitXml { get; set; } /// /// --test-output-dir <arg> - /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if the relative path is specified + /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if a relative path is specified /// public string TestOutputDir { get; set; } /// @@ -72,7 +72,7 @@ public sealed class AppCenterTestRunAppiumSettings : AutoToolSettings public string Locale { get; set; } /// /// --dsym-dir <arg> - /// Path to the directory with iOS symbol files + /// Path to the directory with iOS symbol files. This option is deprecated and ignored /// public string DsymDir { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Calabash/AppCenter.Alias.TestRunCalabash.cs b/src/Cake.AppCenter/Test/Run/Calabash/AppCenter.Alias.TestRunCalabash.cs index d0a2c9d..d6c3593 100644 --- a/src/Cake.AppCenter/Test/Run/Calabash/AppCenter.Alias.TestRunCalabash.cs +++ b/src/Cake.AppCenter/Test/Run/Calabash/AppCenter.Alias.TestRunCalabash.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestRunCalabash(this ICakeContext context, AppCenterTestRunCalabashSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestRunCalabash(this ICakeContext context, AppCenter /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestRunCalabashWithResult(this ICakeContext context, AppCenterTestRunCalabashSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Run/Calabash/AppCenterTestRunCalabashSettings.cs b/src/Cake.AppCenter/Test/Run/Calabash/AppCenterTestRunCalabashSettings.cs index fbbfaba..bc90510 100644 --- a/src/Cake.AppCenter/Test/Run/Calabash/AppCenterTestRunCalabashSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Calabash/AppCenterTestRunCalabashSettings.cs @@ -46,11 +46,6 @@ public sealed class AppCenterTestRunCalabashSettings : AutoToolSettings /// public string Workspace { get; set; } /// - /// --test-output-dir <arg> - /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if the relative path is specified - /// - public string TestOutputDir { get; set; } - /// /// --vsts-id-variable <arg> /// Outputs the Test Run Id to the named VSTS variable /// @@ -92,7 +87,7 @@ public sealed class AppCenterTestRunCalabashSettings : AutoToolSettings public string Locale { get; set; } /// /// --dsym-dir <arg> - /// Path to the directory with iOS symbol files + /// Path to the directory with iOS symbol files. This option is deprecated and ignored /// public string DsymDir { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Espresso/AppCenter.Alias.TestRunEspresso.cs b/src/Cake.AppCenter/Test/Run/Espresso/AppCenter.Alias.TestRunEspresso.cs index 8d84c8a..6867924 100644 --- a/src/Cake.AppCenter/Test/Run/Espresso/AppCenter.Alias.TestRunEspresso.cs +++ b/src/Cake.AppCenter/Test/Run/Espresso/AppCenter.Alias.TestRunEspresso.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestRunEspresso(this ICakeContext context, AppCenterTestRunEspressoSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestRunEspresso(this ICakeContext context, AppCenter /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestRunEspressoWithResult(this ICakeContext context, AppCenterTestRunEspressoSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Run/Espresso/AppCenterTestRunEspressoSettings.cs b/src/Cake.AppCenter/Test/Run/Espresso/AppCenterTestRunEspressoSettings.cs index 8a8a5e1..e577986 100644 --- a/src/Cake.AppCenter/Test/Run/Espresso/AppCenterTestRunEspressoSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Espresso/AppCenterTestRunEspressoSettings.cs @@ -26,11 +26,6 @@ public sealed class AppCenterTestRunEspressoSettings : AutoToolSettings /// public string BuildDir { get; set; } /// - /// --test-output-dir <arg> - /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if the relative path is specified - /// - public string TestOutputDir { get; set; } - /// /// --vsts-id-variable <arg> /// Outputs the Test Run Id to the named VSTS variable /// @@ -52,7 +47,7 @@ public sealed class AppCenterTestRunEspressoSettings : AutoToolSettings public string TestParameter { get; set; } /// /// --include <arg> - /// Additional files and directories to include. The value must be either path relative to the input directory, or be in format "targetDir=sourceDir" + /// Attribute is not supported for Espresso /// public string Include { get; set; } /// @@ -72,7 +67,7 @@ public sealed class AppCenterTestRunEspressoSettings : AutoToolSettings public string Locale { get; set; } /// /// --dsym-dir <arg> - /// Path to the directory with iOS symbol files + /// Path to the directory with iOS symbol files. This option is deprecated and ignored /// public string DsymDir { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Manifest/AppCenter.Alias.TestRunManifest.cs b/src/Cake.AppCenter/Test/Run/Manifest/AppCenter.Alias.TestRunManifest.cs index 301ed8a..8dad148 100644 --- a/src/Cake.AppCenter/Test/Run/Manifest/AppCenter.Alias.TestRunManifest.cs +++ b/src/Cake.AppCenter/Test/Run/Manifest/AppCenter.Alias.TestRunManifest.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestRunManifest(this ICakeContext context, AppCenterTestRunManifestSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestRunManifest(this ICakeContext context, AppCenter /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestRunManifestWithResult(this ICakeContext context, AppCenterTestRunManifestSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Run/Manifest/AppCenterTestRunManifestSettings.cs b/src/Cake.AppCenter/Test/Run/Manifest/AppCenterTestRunManifestSettings.cs index fd27e5c..4bdd468 100644 --- a/src/Cake.AppCenter/Test/Run/Manifest/AppCenterTestRunManifestSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Manifest/AppCenterTestRunManifestSettings.cs @@ -27,7 +27,7 @@ public sealed class AppCenterTestRunManifestSettings : AutoToolSettings public string MergedFileName { get; set; } /// /// --test-output-dir <arg> - /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if the relative path is specified + /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if a relative path is specified /// public string TestOutputDir { get; set; } /// @@ -72,7 +72,7 @@ public sealed class AppCenterTestRunManifestSettings : AutoToolSettings public string Locale { get; set; } /// /// --dsym-dir <arg> - /// Path to the directory with iOS symbol files + /// Path to the directory with iOS symbol files. This option is deprecated and ignored /// public string DsymDir { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Uitest/AppCenter.Alias.TestRunUitest.cs b/src/Cake.AppCenter/Test/Run/Uitest/AppCenter.Alias.TestRunUitest.cs index 32d0558..43a71a4 100644 --- a/src/Cake.AppCenter/Test/Run/Uitest/AppCenter.Alias.TestRunUitest.cs +++ b/src/Cake.AppCenter/Test/Run/Uitest/AppCenter.Alias.TestRunUitest.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestRunUitest(this ICakeContext context, AppCenterTestRunUitestSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestRunUitest(this ICakeContext context, AppCenterTe /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestRunUitestWithResult(this ICakeContext context, AppCenterTestRunUitestSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs b/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs index b47ff4d..e90d337 100644 --- a/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs @@ -27,19 +27,19 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings public bool? TestChunk { get; set; } /// /// --merge-nunit-xml <arg> - /// Merge the xml files in to the <output.xml> file. This parameter won't work when you run using --async because we have to wait for test results + /// Merge the xml files in to the <arg> file. This parameter won't work when you run using --async because we have to wait for test results /// public string MergeNunitXml { get; set; } /// /// --exclude-category <arg> /// NUnit category to not run. (Can be used multiple times) (When include and/or fixture are combined with exclude, all tests with the included categories are run, except for those also marked with the excluded categories) /// - public string[] ExcludeCategory { get; set; } + public string ExcludeCategory { get; set; } /// /// --include-category <arg> /// NUnit category to run. (Can be used multiple times) /// - public string[] IncludeCategory { get; set; } + public string IncludeCategory { get; set; } /// /// --fixture <arg> /// NUnit fixture / namespace to run. If used with include / exclude the fixture filter is applied first (Can be used multiple times) @@ -87,7 +87,7 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings public string BuildDir { get; set; } /// /// --test-output-dir <arg> - /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if the relative path is specified + /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if a relative path is specified /// public string TestOutputDir { get; set; } /// @@ -132,7 +132,7 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings public string Locale { get; set; } /// /// --dsym-dir <arg> - /// Path to the directory with iOS symbol files + /// Path to the directory with iOS symbol files. This option is deprecated and ignored /// public string DsymDir { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenter.Alias.TestRunXcuitest.cs b/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenter.Alias.TestRunXcuitest.cs index c070841..d634a82 100644 --- a/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenter.Alias.TestRunXcuitest.cs +++ b/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenter.Alias.TestRunXcuitest.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestRunXcuitest(this ICakeContext context, AppCenterTestRunXcuitestSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestRunXcuitest(this ICakeContext context, AppCenter /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestRunXcuitestWithResult(this ICakeContext context, AppCenterTestRunXcuitestSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenterTestRunXcuitestSettings.cs b/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenterTestRunXcuitestSettings.cs index fe9ef77..58ad0de 100644 --- a/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenterTestRunXcuitestSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Xcuitest/AppCenterTestRunXcuitestSettings.cs @@ -26,11 +26,6 @@ public sealed class AppCenterTestRunXcuitestSettings : AutoToolSettings /// public string BuildDir { get; set; } /// - /// --test-output-dir <arg> - /// Path to the directory for test results. This parameter won't work when you run using --async because we have to wait for test results. The results will be saved in the working directory if the relative path is specified - /// - public string TestOutputDir { get; set; } - /// /// --vsts-id-variable <arg> /// Outputs the Test Run Id to the named VSTS variable /// @@ -52,7 +47,7 @@ public sealed class AppCenterTestRunXcuitestSettings : AutoToolSettings public string TestParameter { get; set; } /// /// --include <arg> - /// Additional files and directories to include. The value must be either path relative to the input directory, or be in format "targetDir=sourceDir" + /// Attribute is not supported for XCUITest /// public string Include { get; set; } /// @@ -72,7 +67,7 @@ public sealed class AppCenterTestRunXcuitestSettings : AutoToolSettings public string Locale { get; set; } /// /// --dsym-dir <arg> - /// Path to the directory with iOS symbol files + /// Path to the directory with iOS symbol files. This option is deprecated and ignored /// public string DsymDir { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Status/AppCenter.Alias.TestStatus.cs b/src/Cake.AppCenter/Test/Status/AppCenter.Alias.TestStatus.cs index 30e73a9..a8afbbe 100644 --- a/src/Cake.AppCenter/Test/Status/AppCenter.Alias.TestStatus.cs +++ b/src/Cake.AppCenter/Test/Status/AppCenter.Alias.TestStatus.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestStatus(this ICakeContext context, AppCenterTestStatusSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestStatus(this ICakeContext context, AppCenterTestS /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestStatusWithResult(this ICakeContext context, AppCenterTestStatusSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Stop/AppCenter.Alias.TestStop.cs b/src/Cake.AppCenter/Test/Stop/AppCenter.Alias.TestStop.cs index 8a76738..085e89e 100644 --- a/src/Cake.AppCenter/Test/Stop/AppCenter.Alias.TestStop.cs +++ b/src/Cake.AppCenter/Test/Stop/AppCenter.Alias.TestStop.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static void AppCenterTestStop(this ICakeContext context, AppCenterTestStopSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTestStop(this ICakeContext context, AppCenterTestSto /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Test")] public static IEnumerable AppCenterTestStopWithResult(this ICakeContext context, AppCenterTestStopSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Test/Wizard/AppCenter.Alias.TestWizard.cs b/src/Cake.AppCenter/Test/Wizard/AppCenter.Alias.TestWizard.cs new file mode 100644 index 0000000..9ce4321 --- /dev/null +++ b/src/Cake.AppCenter/Test/Wizard/AppCenter.Alias.TestWizard.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Start a test run interactively. All the parameters will be prompted on-the-go. + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Test")] + public static void AppCenterTestWizard(this ICakeContext context, AppCenterTestWizardSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("test wizard", settings ?? new AppCenterTestWizardSettings(), arguments); + } + + + /// + /// Start a test run interactively. All the parameters will be prompted on-the-go. + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Test")] + public static IEnumerable AppCenterTestWizardWithResult(this ICakeContext context, AppCenterTestWizardSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("test wizard", settings ?? new AppCenterTestWizardSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Test/Wizard/AppCenterTestWizardSettings.cs b/src/Cake.AppCenter/Test/Wizard/AppCenterTestWizardSettings.cs new file mode 100644 index 0000000..e6cce92 --- /dev/null +++ b/src/Cake.AppCenter/Test/Wizard/AppCenterTestWizardSettings.cs @@ -0,0 +1,59 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter test wizard. + /// Start a test run interactively. All the parameters will be prompted on-the-go.. + /// + [CompilerGenerated] + public sealed class AppCenterTestWizardSettings : AutoToolSettings + { + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Tokens/Create/AppCenter.Alias.TokensCreate.cs b/src/Cake.AppCenter/Tokens/Create/AppCenter.Alias.TokensCreate.cs index a10c038..77bca0b 100644 --- a/src/Cake.AppCenter/Tokens/Create/AppCenter.Alias.TokensCreate.cs +++ b/src/Cake.AppCenter/Tokens/Create/AppCenter.Alias.TokensCreate.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Tokens")] public static void AppCenterTokensCreate(this ICakeContext context, AppCenterTokensCreateSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTokensCreate(this ICakeContext context, AppCenterTok /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Tokens")] public static IEnumerable AppCenterTokensCreateWithResult(this ICakeContext context, AppCenterTokensCreateSettings settings) { if (context == null) diff --git a/src/Cake.AppCenter/Tokens/Delete/AppCenter.Alias.TokensDelete.cs b/src/Cake.AppCenter/Tokens/Delete/AppCenter.Alias.TokensDelete.cs index 58e63c5..f813367 100644 --- a/src/Cake.AppCenter/Tokens/Delete/AppCenter.Alias.TokensDelete.cs +++ b/src/Cake.AppCenter/Tokens/Delete/AppCenter.Alias.TokensDelete.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Tokens")] public static void AppCenterTokensDelete(this ICakeContext context, AppCenterTokensDeleteSettings settings, string token) { if (context == null) @@ -37,6 +38,7 @@ public static void AppCenterTokensDelete(this ICakeContext context, AppCenterTok /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Tokens")] public static IEnumerable AppCenterTokensDeleteWithResult(this ICakeContext context, AppCenterTokensDeleteSettings settings, string token) { if (context == null) diff --git a/src/Cake.AppCenter/Tokens/List/AppCenter.Alias.TokensList.cs b/src/Cake.AppCenter/Tokens/List/AppCenter.Alias.TokensList.cs index dbe1be5..3afce11 100644 --- a/src/Cake.AppCenter/Tokens/List/AppCenter.Alias.TokensList.cs +++ b/src/Cake.AppCenter/Tokens/List/AppCenter.Alias.TokensList.cs @@ -14,6 +14,7 @@ partial class AppCenterAliases /// The settings. [CakeMethodAlias] + [CakeAliasCategory("Tokens")] public static void AppCenterTokensList(this ICakeContext context, AppCenterTokensListSettings settings) { if (context == null) @@ -33,6 +34,7 @@ public static void AppCenterTokensList(this ICakeContext context, AppCenterToken /// The settings. /// Output lines. [CakeMethodAlias] + [CakeAliasCategory("Tokens")] public static IEnumerable AppCenterTokensListWithResult(this ICakeContext context, AppCenterTokensListSettings settings) { if (context == null) From f89adb559b8acf37cb1fd1502167942cf6af7060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Sat, 25 Jan 2020 16:14:38 +0100 Subject: [PATCH 02/12] Fixes wrong type for AppCenterTestRunUitestSettings IncludeCategory and ExcludeCategory - should be string[] #14 --- .../Test/Run/Uitest/AppCenterTestRunUitestSettings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs b/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs index e90d337..d972c63 100644 --- a/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs @@ -34,12 +34,12 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings /// --exclude-category <arg> /// NUnit category to not run. (Can be used multiple times) (When include and/or fixture are combined with exclude, all tests with the included categories are run, except for those also marked with the excluded categories) /// - public string ExcludeCategory { get; set; } + public string[] ExcludeCategory { get; set; } /// /// --include-category <arg> /// NUnit category to run. (Can be used multiple times) /// - public string IncludeCategory { get; set; } + public string[] IncludeCategory { get; set; } /// /// --fixture <arg> /// NUnit fixture / namespace to run. If used with include / exclude the fixture filter is applied first (Can be used multiple times) From 48145e6f0d45305dc7f67cdcfd2f4ad47da3d5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Sat, 25 Jan 2020 16:15:19 +0100 Subject: [PATCH 03/12] Adds unit test for ArgumentCustomization #11 --- .../Create/AppCenter.Alias.AppsCreateTest.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Cake.AppCenter.Tests/Apps/Create/AppCenter.Alias.AppsCreateTest.cs b/src/Cake.AppCenter.Tests/Apps/Create/AppCenter.Alias.AppsCreateTest.cs index 8699ae6..8d77df1 100644 --- a/src/Cake.AppCenter.Tests/Apps/Create/AppCenter.Alias.AppsCreateTest.cs +++ b/src/Cake.AppCenter.Tests/Apps/Create/AppCenter.Alias.AppsCreateTest.cs @@ -1,6 +1,8 @@ using Cake.AppCenter; +using Cake.Core; using NUnit.Framework; using System; +using System.Linq; namespace Cake.MobilityCenter.Tests.Apps.Create { @@ -18,5 +20,19 @@ public void WhenTokenAndPlatformAreSet_CommandLineIsCorrect() var actual = fixture.Run(); Assert.That(actual.Args, Is.EqualTo("apps create --platform \"x86\" --token \"AlfaBeta\"")); } + + [Test] + public void WhenArgumentCustomizationIsUsed_CommandLineIsCorrect() + { + var fixture = new AppCenterAppsCreateFixture + { + Settings = new AppCenterAppsCreateSettings { Platform = "x86", Token = "AlfaBeta", + ArgumentCustomization = args => args.Append("--debug") + } + }; + + var actual = fixture.Run(); + Assert.That(actual.Args, Is.EqualTo("apps create --platform \"x86\" --token \"AlfaBeta\" --debug")); + } } } From c83cf683a150f9d92d5c477eebd7a4666f5d6e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Tue, 8 Dec 2020 11:03:24 +0100 Subject: [PATCH 04/12] Closes #20 Updats to AppCenter 2.7.3 --- README.md | 6 ++ ...ppCenterCodepushReleaseElectronSettings.cs | 2 +- .../AppCenterCodepushReleaseReactSettings.cs | 7 +- ...AppCenterDistributeGroupsUpdateSettings.cs | 10 +++ .../AppCenterDistributeReleaseSettings.cs | 5 ++ ...enter.Alias.DistributeReleasesEditNotes.cs | 50 +++++++++++ ...nterDistributeReleasesEditNotesSettings.cs | 74 +++++++++++++++ .../Create/AppCenter.Alias.OrgsAppsCreate.cs | 50 +++++++++++ .../Create/AppCenterOrgsAppsCreateSettings.cs | 89 +++++++++++++++++++ .../AppCenterTestPrepareUitestSettings.cs | 10 +-- .../Appium/AppCenterTestRunAppiumSettings.cs | 2 +- .../Uitest/AppCenterTestRunUitestSettings.cs | 6 +- .../Create/AppCenterTokensCreateSettings.cs | 10 +++ .../Delete/AppCenterTokensDeleteSettings.cs | 10 +++ .../List/AppCenterTokensListSettings.cs | 10 +++ 15 files changed, 330 insertions(+), 11 deletions(-) create mode 100644 src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenter.Alias.DistributeReleasesEditNotes.cs create mode 100644 src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenterDistributeReleasesEditNotesSettings.cs create mode 100644 src/Cake.AppCenter/Orgs/Apps/Create/AppCenter.Alias.OrgsAppsCreate.cs create mode 100644 src/Cake.AppCenter/Orgs/Apps/Create/AppCenterOrgsAppsCreateSettings.cs diff --git a/README.md b/README.md index c295713..7ae7860 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ A Cake AddIn that extends Cake with [AppCenter](https://github.com/Microsoft/app ## Important +1.3.0 Supports AppCenter 2.7.3 + 1.2.0 Supports Cake 0.33 1.0.0 Supports Cake 0.26 and .NET Standard 2.0. @@ -37,6 +39,10 @@ Other commands follow same convention. This version is built against AppCenter CLI tools version 1.0.16. +## Contributions + +Code is mostly autogenerated with a custom parser. If you want to contribute, ask first by creating an issue. + ## Credits Brought to you by [Miha Markic](https://github.com/MihaMarkic) ([@MihaMarkic](https://twitter.com/MihaMarkic/)) and contributors. \ No newline at end of file diff --git a/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs b/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs index 5d70258..a20d1f7 100644 --- a/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs +++ b/src/Cake.AppCenter/Codepush/ReleaseElectron/AppCenterCodepushReleaseElectronSettings.cs @@ -37,7 +37,7 @@ public sealed class AppCenterCodepushReleaseElectronSettings : AutoToolSettings public string SourcemapOutput { get; set; } /// /// -e|--entry-file <arg> - /// Path to the app's entry Javascript file. If omitted, "index.<platform>.js" and then "index.js" will be used (if they exist) + /// Path to the app's entry JavaScript file. If omitted, "index.<platform>.js" and then "index.js" will be used (if they exist) /// public string EntryFile { get; set; } /// diff --git a/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs b/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs index 7199471..6c57c8e 100644 --- a/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs +++ b/src/Cake.AppCenter/Codepush/ReleaseReact/AppCenterCodepushReleaseReactSettings.cs @@ -41,6 +41,11 @@ public sealed class AppCenterCodepushReleaseReactSettings : AutoToolSettings /// public string SourcemapOutput { get; set; } /// + /// -c|--build-configuration-name <arg> + /// Name of build configuration which specifies the binary version you want to target this release at. For example, "Debug" or "Release" (iOS only) + /// + public string BuildConfigurationName { get; set; } + /// /// --plist-file-prefix <arg> /// Prefix to append to the file name when attempting to find your app's Info.plist file (iOS only) /// @@ -57,7 +62,7 @@ public sealed class AppCenterCodepushReleaseReactSettings : AutoToolSettings public string GradleFile { get; set; } /// /// -e|--entry-file <arg> - /// Path to the app's entry Javascript file. If omitted, "index.<platform>.js" and then "index.js" will be used (if they exist) + /// Path to the app's entry JavaScript file. If omitted, "index.<platform>.js" and then "index.js" will be used (if they exist) /// public string EntryFile { get; set; } /// diff --git a/src/Cake.AppCenter/Distribute/Groups/Update/AppCenterDistributeGroupsUpdateSettings.cs b/src/Cake.AppCenter/Distribute/Groups/Update/AppCenterDistributeGroupsUpdateSettings.cs index ed58d4c..30ec54b 100644 --- a/src/Cake.AppCenter/Distribute/Groups/Update/AppCenterDistributeGroupsUpdateSettings.cs +++ b/src/Cake.AppCenter/Distribute/Groups/Update/AppCenterDistributeGroupsUpdateSettings.cs @@ -16,6 +16,16 @@ public sealed class AppCenterDistributeGroupsUpdateSettings : AutoToolSettings /// public string Group { get; set; } /// + /// --private + /// Make the distribution group private (allowing only members to download the releases). Don't use with opposite --public. + /// + public bool? Private { get; set; } + /// + /// -p|--public + /// Make the distribution group public (allowing anyone to download the releases). Don't use with opposite --private. + /// + public bool? Public { get; set; } + /// /// -D|--delete-testers-file <arg> /// Path to file containing list of testers to delete /// diff --git a/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs b/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs index 4dc4a4a..25e8f4f 100644 --- a/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs +++ b/src/Cake.AppCenter/Distribute/Release/AppCenterDistributeReleaseSettings.cs @@ -16,6 +16,11 @@ public sealed class AppCenterDistributeReleaseSettings : AutoToolSettings /// public string File { get; set; } /// + /// --mandatory + /// Make the release mandatory for the testers (default is false) + /// + public bool? Mandatory { get; set; } + /// /// --silent /// Do not notify testers of this release /// diff --git a/src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenter.Alias.DistributeReleasesEditNotes.cs b/src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenter.Alias.DistributeReleasesEditNotes.cs new file mode 100644 index 0000000..c4cdc1c --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenter.Alias.DistributeReleasesEditNotes.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Update release notes + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static void AppCenterDistributeReleasesEditNotes(this ICakeContext context, AppCenterDistributeReleasesEditNotesSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("distribute releases edit-notes", settings ?? new AppCenterDistributeReleasesEditNotesSettings(), arguments); + } + + + /// + /// Update release notes + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static IEnumerable AppCenterDistributeReleasesEditNotesWithResult(this ICakeContext context, AppCenterDistributeReleasesEditNotesSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("distribute releases edit-notes", settings ?? new AppCenterDistributeReleasesEditNotesSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenterDistributeReleasesEditNotesSettings.cs b/src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenterDistributeReleasesEditNotesSettings.cs new file mode 100644 index 0000000..1b4811a --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Releases/EditNotes/AppCenterDistributeReleasesEditNotesSettings.cs @@ -0,0 +1,74 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter distribute releases edit-notes. + /// Update release notes. + /// + [CompilerGenerated] + public sealed class AppCenterDistributeReleasesEditNotesSettings : AutoToolSettings + { + /// + /// -r|--release-id <arg> + /// Release ID + /// + public string ReleaseId { get; set; } + /// + /// -N|--release-notes-file <arg> + /// Path to release notes file + /// + public string ReleaseNotesFile { get; set; } + /// + /// -n|--release-notes <arg> + /// Release notes text + /// + public string ReleaseNotes { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Orgs/Apps/Create/AppCenter.Alias.OrgsAppsCreate.cs b/src/Cake.AppCenter/Orgs/Apps/Create/AppCenter.Alias.OrgsAppsCreate.cs new file mode 100644 index 0000000..7a57502 --- /dev/null +++ b/src/Cake.AppCenter/Orgs/Apps/Create/AppCenter.Alias.OrgsAppsCreate.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Create a new app in an organization + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Orgs")] + public static void AppCenterOrgsAppsCreate(this ICakeContext context, AppCenterOrgsAppsCreateSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("orgs apps create", settings ?? new AppCenterOrgsAppsCreateSettings(), arguments); + } + + + /// + /// Create a new app in an organization + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Orgs")] + public static IEnumerable AppCenterOrgsAppsCreateWithResult(this ICakeContext context, AppCenterOrgsAppsCreateSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("orgs apps create", settings ?? new AppCenterOrgsAppsCreateSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Orgs/Apps/Create/AppCenterOrgsAppsCreateSettings.cs b/src/Cake.AppCenter/Orgs/Apps/Create/AppCenterOrgsAppsCreateSettings.cs new file mode 100644 index 0000000..c53d270 --- /dev/null +++ b/src/Cake.AppCenter/Orgs/Apps/Create/AppCenterOrgsAppsCreateSettings.cs @@ -0,0 +1,89 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter orgs apps create. + /// Create a new app in an organization. + /// + [CompilerGenerated] + public sealed class AppCenterOrgsAppsCreateSettings : AutoToolSettings + { + /// + /// -p|--platform <arg> + /// The platform of the app. Supported values: Cordova, Java, Objective-C-Swift, React-Native, Unity, UWP, WinForms, WPF, Xamarin, Custom + /// + public string Platform { get; set; } + /// + /// -o|--os <arg> + /// The OS the app will be running on. Supported values: Android, Custom, iOS, macOS, tvOS, Windows + /// + public string Os { get; set; } + /// + /// -d|--display-name <arg> + /// The descriptive name of the app. This can contain any characters + /// + public string DisplayName { get; set; } + /// + /// -n|--org-name <arg> + /// Name of the organization + /// + public string OrgName { get; set; } + /// + /// -r|--release-type <arg> + /// The app release type. Suggested values are Alpha, Beta, Production, Store, Enterprise. Custom values are allowed and must be must be one word, alphanumeric, first letter capitalized. + /// + public string ReleaseType { get; set; } + /// + /// --description <arg> + /// Description of the app + /// + public string Description { get; set; } + /// + /// -a|--app-name <arg> + /// The name of the app used in URLs. Can optionally be provided specifically, otherwise a generated name will be derived from display-name + /// + public string AppName { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenterTestPrepareUitestSettings.cs b/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenterTestPrepareUitestSettings.cs index b59b696..5bed4b7 100644 --- a/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenterTestPrepareUitestSettings.cs +++ b/src/Cake.AppCenter/Test/Prepare/Uitest/AppCenterTestPrepareUitestSettings.cs @@ -27,7 +27,7 @@ public sealed class AppCenterTestPrepareUitestSettings : AutoToolSettings public string ArtifactsDir { get; set; } /// /// --fixture-chunk - /// Run tests in parallel by fixture + /// Run tests in parallel by fixture, ignore the use of include- / exclude-category /// public bool? FixtureChunk { get; set; } /// @@ -39,17 +39,17 @@ public sealed class AppCenterTestPrepareUitestSettings : AutoToolSettings /// --exclude-category <arg> /// NUnit category to not run. (Can be used multiple times) (When include and/or fixture are combined with exclude, all tests with the included categories are run, except for those also marked with the excluded categories) /// - public string ExcludeCategory { get; set; } + public string[] ExcludeCategory { get; set; } /// /// --include-category <arg> /// NUnit category to run. (Can be used multiple times) /// - public string IncludeCategory { get; set; } + public string[] IncludeCategory { get; set; } /// /// --fixture <arg> - /// NUnit fixture / namespace to run. If used with include / exclude the fixture filter is applied first (Can be used multiple times) + /// NUnit fixture / namespace to run. If used with include- / exclude-category the fixture filter is applied first (Can be used multiple times) /// - public string Fixture { get; set; } + public string[] Fixture { get; set; } /// /// --uitest-tools-dir <arg> /// Path to the directory containing the Xamarin UI Tests tools including test-cloud.exe diff --git a/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs b/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs index 83eece9..4420d90 100644 --- a/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Appium/AppCenterTestRunAppiumSettings.cs @@ -22,7 +22,7 @@ public sealed class AppCenterTestRunAppiumSettings : AutoToolSettings public string Devices { get; set; } /// /// --merge-junit-xml <arg> - /// Merge the xml files in to the <arg> file. This parameter won't work when you run using --async because we have to wait for test results + /// Merge the xml files into the <arg> file. Requires --test-output-dir to specify the directory where the <arg> file will be. This parameter is ignored when used with the --async option because we have to wait for test results. /// public string MergeJunitXml { get; set; } /// diff --git a/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs b/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs index d972c63..bb30b86 100644 --- a/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs +++ b/src/Cake.AppCenter/Test/Run/Uitest/AppCenterTestRunUitestSettings.cs @@ -17,7 +17,7 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings public string Devices { get; set; } /// /// --fixture-chunk - /// Run tests in parallel by fixture + /// Run tests in parallel by fixture, ignore the use of include- / exclude-category /// public bool? FixtureChunk { get; set; } /// @@ -27,7 +27,7 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings public bool? TestChunk { get; set; } /// /// --merge-nunit-xml <arg> - /// Merge the xml files in to the <arg> file. This parameter won't work when you run using --async because we have to wait for test results + /// Merge the xml files into the <arg> file. Requires --test-output-dir to specify the directory where the <arg> file will be. This parameter is ignored when used with the --async option because we have to wait for test results. /// public string MergeNunitXml { get; set; } /// @@ -42,7 +42,7 @@ public sealed class AppCenterTestRunUitestSettings : AutoToolSettings public string[] IncludeCategory { get; set; } /// /// --fixture <arg> - /// NUnit fixture / namespace to run. If used with include / exclude the fixture filter is applied first (Can be used multiple times) + /// NUnit fixture / namespace to run. If used with include- / exclude-category the fixture filter is applied first (Can be used multiple times) /// public string Fixture { get; set; } /// diff --git a/src/Cake.AppCenter/Tokens/Create/AppCenterTokensCreateSettings.cs b/src/Cake.AppCenter/Tokens/Create/AppCenterTokensCreateSettings.cs index 5eecb8d..8a3f8bd 100644 --- a/src/Cake.AppCenter/Tokens/Create/AppCenterTokensCreateSettings.cs +++ b/src/Cake.AppCenter/Tokens/Create/AppCenterTokensCreateSettings.cs @@ -10,12 +10,22 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterTokensCreateSettings : AutoToolSettings { + /// + /// -t|--type <arg> + /// The type of token: [ user, app ]. An app must be specified for app type tokens + /// + public string Type { get; set; } /// /// -d|--description <arg> /// Description of the API token /// public string Description { get; set; } /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// /// --disable-telemetry /// Disable telemetry for this command /// diff --git a/src/Cake.AppCenter/Tokens/Delete/AppCenterTokensDeleteSettings.cs b/src/Cake.AppCenter/Tokens/Delete/AppCenterTokensDeleteSettings.cs index 0d6090a..c396092 100644 --- a/src/Cake.AppCenter/Tokens/Delete/AppCenterTokensDeleteSettings.cs +++ b/src/Cake.AppCenter/Tokens/Delete/AppCenterTokensDeleteSettings.cs @@ -10,6 +10,16 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterTokensDeleteSettings : AutoToolSettings { + /// + /// -t|--type <arg> + /// The type of token: [ user, app ]. An app must be specified for app type tokens + /// + public string Type { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } /// /// --disable-telemetry /// Disable telemetry for this command diff --git a/src/Cake.AppCenter/Tokens/List/AppCenterTokensListSettings.cs b/src/Cake.AppCenter/Tokens/List/AppCenterTokensListSettings.cs index d748124..40c14cc 100644 --- a/src/Cake.AppCenter/Tokens/List/AppCenterTokensListSettings.cs +++ b/src/Cake.AppCenter/Tokens/List/AppCenterTokensListSettings.cs @@ -10,6 +10,16 @@ namespace Cake.AppCenter [CompilerGenerated] public sealed class AppCenterTokensListSettings : AutoToolSettings { + /// + /// -t|--type <arg> + /// The type of token: [ user, app ]. An app must be specified for app type tokens + /// + public string Type { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } /// /// --disable-telemetry /// Disable telemetry for this command From 4635860abdd31da5b3fd77231f6ff08beef5e5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Tue, 8 Dec 2020 11:07:52 +0100 Subject: [PATCH 05/12] Updates unit test nuget packages --- src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj b/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj index 0a4ecf7..16b260a 100644 --- a/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj +++ b/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj @@ -11,10 +11,10 @@ - - - - + + + + From e770d9931e1fa812a96f6eb7fa9d76bc17cc4bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Wed, 9 Dec 2020 18:21:36 +0100 Subject: [PATCH 06/12] Adds missing files under publish directory #20 --- .gitignore | 3 - ...AppCenter.Alias.DistributeGroupsPublish.cs | 50 +++++++++++ ...ppCenterDistributeGroupsPublishSettings.cs | 89 +++++++++++++++++++ ...AppCenter.Alias.DistributeStoresPublish.cs | 50 +++++++++++ ...ppCenterDistributeStoresPublishSettings.cs | 79 ++++++++++++++++ 5 files changed, 268 insertions(+), 3 deletions(-) create mode 100644 src/Cake.AppCenter/Distribute/Groups/Publish/AppCenter.Alias.DistributeGroupsPublish.cs create mode 100644 src/Cake.AppCenter/Distribute/Groups/Publish/AppCenterDistributeGroupsPublishSettings.cs create mode 100644 src/Cake.AppCenter/Distribute/Stores/Publish/AppCenter.Alias.DistributeStoresPublish.cs create mode 100644 src/Cake.AppCenter/Distribute/Stores/Publish/AppCenterDistributeStoresPublishSettings.cs diff --git a/.gitignore b/.gitignore index 63b7b26..de292ad 100644 --- a/.gitignore +++ b/.gitignore @@ -131,9 +131,6 @@ DocProject/Help/*.hhp DocProject/Help/Html2 DocProject/Help/html -# Click-Once directory -publish/ - # Publish Web Output *.[Pp]ublish.xml *.azurePubxml diff --git a/src/Cake.AppCenter/Distribute/Groups/Publish/AppCenter.Alias.DistributeGroupsPublish.cs b/src/Cake.AppCenter/Distribute/Groups/Publish/AppCenter.Alias.DistributeGroupsPublish.cs new file mode 100644 index 0000000..85870f4 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Groups/Publish/AppCenter.Alias.DistributeGroupsPublish.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Publish an app file to a group + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static void AppCenterDistributeGroupsPublish(this ICakeContext context, AppCenterDistributeGroupsPublishSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("distribute groups publish", settings ?? new AppCenterDistributeGroupsPublishSettings(), arguments); + } + + + /// + /// Publish an app file to a group + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static IEnumerable AppCenterDistributeGroupsPublishWithResult(this ICakeContext context, AppCenterDistributeGroupsPublishSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("distribute groups publish", settings ?? new AppCenterDistributeGroupsPublishSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Distribute/Groups/Publish/AppCenterDistributeGroupsPublishSettings.cs b/src/Cake.AppCenter/Distribute/Groups/Publish/AppCenterDistributeGroupsPublishSettings.cs new file mode 100644 index 0000000..c99a20a --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Groups/Publish/AppCenterDistributeGroupsPublishSettings.cs @@ -0,0 +1,89 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter distribute groups publish. + /// Publish an app file to a group. + /// + [CompilerGenerated] + public sealed class AppCenterDistributeGroupsPublishSettings : AutoToolSettings + { + /// + /// -g|--group <arg> + /// Distribution group name + /// + public string Group { get; set; } + /// + /// -f|--file <arg> + /// Path to binary file + /// + public string File { get; set; } + /// + /// -R|--release-notes-file <arg> + /// Path to release notes file + /// + public string ReleaseNotesFile { get; set; } + /// + /// -r|--release-notes <arg> + /// Release notes text + /// + public string ReleaseNotes { get; set; } + /// + /// -n|--build-number <arg> + /// Build number parameter required for macOS .pkg and .dmg files + /// + public string BuildNumber { get; set; } + /// + /// -b|--build-version <arg> + /// Build version parameter required for .zip, .msi, .pkg and .dmg files + /// + public string BuildVersion { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file diff --git a/src/Cake.AppCenter/Distribute/Stores/Publish/AppCenter.Alias.DistributeStoresPublish.cs b/src/Cake.AppCenter/Distribute/Stores/Publish/AppCenter.Alias.DistributeStoresPublish.cs new file mode 100644 index 0000000..d0a8237 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Stores/Publish/AppCenter.Alias.DistributeStoresPublish.cs @@ -0,0 +1,50 @@ +using Cake.Core; +using Cake.Core.Annotations; +using System; +using System.Collections.Generic; + +namespace Cake.AppCenter +{ + partial class AppCenterAliases + { + /// + /// Publish an app file to a store + /// + /// The context. + /// The settings. + + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static void AppCenterDistributeStoresPublish(this ICakeContext context, AppCenterDistributeStoresPublishSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + runner.Run("distribute stores publish", settings ?? new AppCenterDistributeStoresPublishSettings(), arguments); + } + + + /// + /// Publish an app file to a store + /// + /// The context. + /// The settings. + /// Output lines. + [CakeMethodAlias] + [CakeAliasCategory("Distribute")] + public static IEnumerable AppCenterDistributeStoresPublishWithResult(this ICakeContext context, AppCenterDistributeStoresPublishSettings settings) + { + if (context == null) + { + throw new ArgumentNullException("context"); + } + var arguments = new string[0]; + var runner = new GenericRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); + return runner.RunWithResult("distribute stores publish", settings ?? new AppCenterDistributeStoresPublishSettings(), arguments); + } + + } +} diff --git a/src/Cake.AppCenter/Distribute/Stores/Publish/AppCenterDistributeStoresPublishSettings.cs b/src/Cake.AppCenter/Distribute/Stores/Publish/AppCenterDistributeStoresPublishSettings.cs new file mode 100644 index 0000000..3ef6824 --- /dev/null +++ b/src/Cake.AppCenter/Distribute/Stores/Publish/AppCenterDistributeStoresPublishSettings.cs @@ -0,0 +1,79 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Cake.AppCenter +{ + /// + /// Settings for appcenter distribute stores publish. + /// Publish an app file to a store. + /// + [CompilerGenerated] + public sealed class AppCenterDistributeStoresPublishSettings : AutoToolSettings + { + /// + /// -s|--store <arg> + /// Store name + /// + public string Store { get; set; } + /// + /// -f|--file <arg> + /// Path to binary file + /// + public string File { get; set; } + /// + /// -R|--release-notes-file <arg> + /// Path to release notes file + /// + public string ReleaseNotesFile { get; set; } + /// + /// -r|--release-notes <arg> + /// Release notes text + /// + public string ReleaseNotes { get; set; } + /// + /// -a|--app <arg> + /// Specify app in the <ownerName>/<appName> format + /// + public string App { get; set; } + /// + /// --disable-telemetry + /// Disable telemetry for this command + /// + public bool? DisableTelemetry { get; set; } + /// + /// -v|--version + /// Display appcenter version + /// + public bool? Version { get; set; } + /// + /// --quiet + /// Auto-confirm any prompts without waiting for input + /// + public bool? Quiet { get; set; } + /// + /// -h|--help + /// Display help for current command + /// + public bool? Help { get; set; } + /// + /// --env <arg> + /// Environment when using API token + /// + public string Env { get; set; } + /// + /// --token <arg> + /// API token + /// + public string Token { get; set; } + /// + /// --output <arg> + /// Output format: json + /// + public string Output { get; set; } + /// + /// --debug + /// Display extra output for debugging + /// + public bool? Debug { get; set; } + } +} \ No newline at end of file From 48adb6b56e57523ca8f365171ae362fd7c4c4268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Thu, 10 Dec 2020 10:36:45 +0100 Subject: [PATCH 07/12] Updates Cake.Recipe to 2.1.0 and switches to .Net core cake tool --- .appveyor.yml | 4 +- .config/dotnet-tools.json | 12 +++ .gitignore | 3 +- .vscode/settings.json | 8 ++ build.ps1 | 191 +++----------------------------------- setup.cake => recipe.cake | 5 +- tools/packages.config | 2 +- 7 files changed, 39 insertions(+), 186 deletions(-) create mode 100644 .config/dotnet-tools.json create mode 100644 .vscode/settings.json rename setup.cake => recipe.cake (87%) diff --git a/.appveyor.yml b/.appveyor.yml index e49db98..fb07be5 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,7 @@ #---------------------------------# # Build Image # #---------------------------------# -image: Visual Studio 2017 +image: Visual Studio 2019 #---------------------------------# # Build Script # @@ -28,4 +28,4 @@ branches: #---------------------------------# cache: - src\packages -> src\**\packages.config -- 'tools -> setup.cake,tools/packages.config' +- tools -> recipe.cake diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..727dfd7 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "cake.tool": { + "version": "0.38.5", + "commands": [ + "dotnet-cake" + ] + } + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index de292ad..3003ca0 100644 --- a/.gitignore +++ b/.gitignore @@ -234,4 +234,5 @@ src/tools AppCenterParser/ integration-test/ tools/* -!tools/packages.config \ No newline at end of file +!tools/packages.config +BuildArtifacts/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a208e6c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "omnisharp.enableEditorConfigSupport": true, + "omnisharp.enableRoslynAnalyzers": true, + "[powershell]": { + "files.encoding": "utf8bom" + }, + "powershell.codeFormatting.addWhitespaceAroundPipe": true + } \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index bdfb32b..0940a31 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,184 +1,15 @@ -########################################################################## -# This is the Cake bootstrapper script for PowerShell. -# This file was downloaded from https://github.com/cake-build/resources -# Feel free to change this file to fit your needs. -########################################################################## +$ErrorActionPreference = 'Stop' -<# -.SYNOPSIS -This is a Powershell script to bootstrap a Cake build. -.DESCRIPTION -This Powershell script will download NuGet if missing, restore NuGet tools (including Cake) -and execute your Cake build script with the parameters you provide. -.PARAMETER Script -The build script to execute. -.PARAMETER Target -The build script target to run. -.PARAMETER Configuration -The build configuration to use. -.PARAMETER Verbosity -Specifies the amount of information to be displayed. -.PARAMETER Experimental -Tells Cake to use the latest Roslyn release. -.PARAMETER WhatIf -Performs a dry run of the build script. -No tasks will be executed. -.PARAMETER Mono -Tells Cake to use the Mono scripting engine. -.PARAMETER SkipToolPackageRestore -Skips restoring of packages. -.PARAMETER ScriptArgs -Remaining arguments are added here. -.LINK -http://cakebuild.net -#> +$SCRIPT_NAME = "recipe.cake" -[CmdletBinding()] -Param( - [string]$Script = "setup.cake", - [string]$Target = "Default", - [ValidateSet("Release", "Debug")] - [string]$Configuration = "Release", - [ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")] - [string]$Verbosity = "Verbose", - [switch]$Experimental, - [Alias("DryRun","Noop")] - [switch]$WhatIf, - [switch]$Mono, - [switch]$SkipToolPackageRestore, - [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] - [string[]]$ScriptArgs -) +Write-Host "Restoring .NET Core tools" +dotnet tool restore +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } -[Reflection.Assembly]::LoadWithPartialName("System.Security") | Out-Null -function MD5HashFile([string] $filePath) -{ - if ([string]::IsNullOrEmpty($filePath) -or !(Test-Path $filePath -PathType Leaf)) - { - return $null - } +Write-Host "Bootstrapping Cake" +dotnet cake $SCRIPT_NAME --bootstrap +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - [System.IO.Stream] $file = $null; - [System.Security.Cryptography.MD5] $md5 = $null; - try - { - $md5 = [System.Security.Cryptography.MD5]::Create() - $file = [System.IO.File]::OpenRead($filePath) - return [System.BitConverter]::ToString($md5.ComputeHash($file)) - } - finally - { - if ($file -ne $null) - { - $file.Dispose() - } - } -} - -Write-Host "Preparing to run build script..." - -if(!$PSScriptRoot){ - $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent -} - -$TOOLS_DIR = Join-Path $PSScriptRoot "tools" -$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe" -$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe" -$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config" -$PACKAGES_CONFIG_MD5 = Join-Path $TOOLS_DIR "packages.config.md5sum" - -# Should we use mono? -$UseMono = ""; -if($Mono.IsPresent) { - Write-Verbose -Message "Using the Mono based scripting engine." - $UseMono = "-mono" -} - -# Should we use the new Roslyn? -$UseExperimental = ""; -if($Experimental.IsPresent -and !($Mono.IsPresent)) { - Write-Verbose -Message "Using experimental version of Roslyn." - $UseExperimental = "-experimental" -} - -# Is this a dry run? -$UseDryRun = ""; -if($WhatIf.IsPresent) { - $UseDryRun = "-dryrun" -} - -# Make sure tools folder exists -if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) { - Write-Verbose -Message "Creating tools directory..." - New-Item -Path $TOOLS_DIR -Type directory | out-null -} - -# Make sure that packages.config exist. -if (!(Test-Path $PACKAGES_CONFIG)) { - Write-Verbose -Message "Downloading packages.config..." - try { (New-Object System.Net.WebClient).DownloadFile("http://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) } catch { - Throw "Could not download packages.config." - } -} - -# Try find NuGet.exe in path if not exists -if (!(Test-Path $NUGET_EXE)) { - Write-Verbose -Message "Trying to find nuget.exe in PATH..." - $existingPaths = $Env:Path -Split ';' | Where-Object { (![string]::IsNullOrEmpty($_)) -and (Test-Path $_) } - $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1 - if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) { - Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)." - $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName - } -} - -# Try download NuGet.exe if not exists -if (!(Test-Path $NUGET_EXE)) { - Write-Verbose -Message "Downloading NuGet.exe..." - try { - (New-Object System.Net.WebClient).DownloadFile($NUGET_URL, $NUGET_EXE) - } catch { - Throw "Could not download NuGet.exe." - } -} - -# Save nuget.exe path to environment to be available to child processed -$ENV:NUGET_EXE = $NUGET_EXE - -# Restore tools from NuGet? -if(-Not $SkipToolPackageRestore.IsPresent) { - Push-Location - Set-Location $TOOLS_DIR - - # Check for changes in packages.config and remove installed tools if true. - [string] $md5Hash = MD5HashFile($PACKAGES_CONFIG) - if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or - ($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) { - Write-Verbose -Message "Missing or changed package.config hash..." - Remove-Item * -Recurse -Exclude packages.config,nuget.exe - } - - Write-Verbose -Message "Restoring tools from NuGet..." - $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -PreRelease -OutputDirectory `"$TOOLS_DIR`" -Source https://www.myget.org/F/cake/api/v3/index.json" - - if ($LASTEXITCODE -ne 0) { - Throw "An error occured while restoring NuGet tools." - } - else - { - $md5Hash | Out-File $PACKAGES_CONFIG_MD5 -Encoding "ASCII" - } - Write-Verbose -Message ($NuGetOutput | out-string) - Pop-Location -} - -# Make sure that Cake has been installed. -if (!(Test-Path $CAKE_EXE)) { - Throw "Could not find Cake.exe at $CAKE_EXE" -} - -# Start Cake -Write-Host "Running build script..." -Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs" -exit $LASTEXITCODE \ No newline at end of file +Write-Host "Running Build" +dotnet cake $SCRIPT_NAME @args +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } \ No newline at end of file diff --git a/setup.cake b/recipe.cake similarity index 87% rename from setup.cake rename to recipe.cake index 57e22a4..6e00df1 100644 --- a/setup.cake +++ b/recipe.cake @@ -1,4 +1,4 @@ -#load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease +#load nuget:?package=Cake.Recipe&version=2.1.0 Environment.SetVariableNames(); @@ -12,7 +12,8 @@ BuildParameters.SetParameters( appVeyorAccountName: "cakecontrib", shouldRunDupFinder: false, shouldRunInspectCode: false, - shouldRunCodecov: false); + shouldRunCodecov: false, + shouldRunDotNetCorePack: true); BuildParameters.PrintParameters(Context); diff --git a/tools/packages.config b/tools/packages.config index f27ab48..007f90a 100644 --- a/tools/packages.config +++ b/tools/packages.config @@ -1,4 +1,4 @@ - + From 7537509287e3533a5828b4c40650dd27fd791d12 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 10 Dec 2020 19:33:15 +0000 Subject: [PATCH 08/12] (build) Add posix bootstrapper --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ba5d0c9 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash +SCRIPT_NAME="recipe.cake" + +echo "Restoring .NET Core tools" +dotnet tool restore + +echo "Bootstrapping Cake" +dotnet cake $SCRIPT_NAME --bootstrap + +echo "Running Build" +dotnet cake $SCRIPT_NAME "$@" \ No newline at end of file From 865e5668cb18d0b59e27242f7ff0136883bbd5b7 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 10 Dec 2020 19:34:21 +0000 Subject: [PATCH 09/12] (build) Remove unnecessary files Pinning the Cake version is now handled via the tool manifest file, and the nupkg information is generation via the csproj file. --- nuspec/nuget/Cake.AppCenter.nuspec | 21 --------------------- tools/packages.config | 4 ---- 2 files changed, 25 deletions(-) delete mode 100644 nuspec/nuget/Cake.AppCenter.nuspec delete mode 100644 tools/packages.config diff --git a/nuspec/nuget/Cake.AppCenter.nuspec b/nuspec/nuget/Cake.AppCenter.nuspec deleted file mode 100644 index 00d8c46..0000000 --- a/nuspec/nuget/Cake.AppCenter.nuspec +++ /dev/null @@ -1,21 +0,0 @@ - - - - Cake.AppCenter - 0.0.0 - Miha Markic, Cake Contributors - Miha Markic, Cake Contributors - false - https://raw.githubusercontent.com/cake-contrib/Cake.AppCenter/master/LICENSE - https://github.com/cake-contrib/Cake.AppCenter - https://cdn.jsdelivr.net/gh/cake-contrib/graphics/png/cake-contrib-medium.png - AppCenter Addin for Cake Build, Test and Deployment Automation System. - Copyright 2018 (c) Miha Markic and contributors - Cake Script Build Test Deploy AppCenter Deployment - - - - - - - diff --git a/tools/packages.config b/tools/packages.config deleted file mode 100644 index 007f90a..0000000 --- a/tools/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - From 571a5571b7488287fb45f1fbaadebff4080991a7 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 10 Dec 2020 19:34:44 +0000 Subject: [PATCH 10/12] (build) Enable deterministic build --- .../Cake.AppCenter.Tests.csproj | 8 ++++++ src/Cake.AppCenter/Cake.AppCenter.csproj | 4 +++ src/Directory.Build.targets | 28 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 src/Directory.Build.targets diff --git a/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj b/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj index 16b260a..9928a7f 100644 --- a/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj +++ b/src/Cake.AppCenter.Tests/Cake.AppCenter.Tests.csproj @@ -11,7 +11,15 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + diff --git a/src/Cake.AppCenter/Cake.AppCenter.csproj b/src/Cake.AppCenter/Cake.AppCenter.csproj index a7701a7..7fa8e74 100644 --- a/src/Cake.AppCenter/Cake.AppCenter.csproj +++ b/src/Cake.AppCenter/Cake.AppCenter.csproj @@ -11,6 +11,10 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets new file mode 100644 index 0000000..f09f8d8 --- /dev/null +++ b/src/Directory.Build.targets @@ -0,0 +1,28 @@ + + + + + + + + true + true + $([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)')) + + + + + + + + + + + <_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/> + + + From cebffd7c946ebadb6ad7b727f587ea8024b76f1a Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 10 Dec 2020 19:36:33 +0000 Subject: [PATCH 11/12] (build) Remove space on TestCoverageFilter This was causing the following error: Error: One or more errors occurred. (Index was outside the bounds of the array.) --- recipe.cake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe.cake b/recipe.cake index 6e00df1..b9592e7 100644 --- a/recipe.cake +++ b/recipe.cake @@ -20,7 +20,7 @@ BuildParameters.PrintParameters(Context); ToolSettings.SetToolSettings( context: Context, dupFinderExcludePattern: new string[] { BuildParameters.RootDirectoryPath + "/src/Cake.AppCenter.Tests/*.cs" }, - testCoverageFilter: "+[*]* -[nunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]* ", + testCoverageFilter: "+[*]* -[nunit.*]* -[Cake.Core]* -[Cake.Testing]* -[*.Tests]*", testCoverageExcludeByAttribute: "*.ExcludeFromCodeCoverage*", testCoverageExcludeByFile: "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs"); Build.RunDotNetCore(); From c84db907755fc39095e9a0d5844303e029b37b03 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Thu, 10 Dec 2020 19:39:19 +0000 Subject: [PATCH 12/12] (build) Update AppVeyor target name --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index fb07be5..8915f7e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -7,7 +7,7 @@ image: Visual Studio 2019 # Build Script # #---------------------------------# build_script: - - ps: .\build.ps1 -Target AppVeyor + - ps: .\build.ps1 --target=CI # Tests test: off