|
| 1 | +# -------------------------------------------------------------------------------------------- |
| 2 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +# Licensed under the MIT License. See License.txt in the project root for license information. |
| 4 | +# -------------------------------------------------------------------------------------------- |
| 5 | + |
| 6 | +from knack.help_files import helps |
| 7 | + |
| 8 | + |
| 9 | +def load_migration_help(): |
| 10 | + helps['devops migrations'] = """ |
| 11 | + type: group |
| 12 | + short-summary: Manage enterprise live migrations. |
| 13 | + long-summary: This command group is a part of the azure-devops extension. |
| 14 | + """ |
| 15 | + |
| 16 | + helps['devops migrations list'] = """ |
| 17 | + type: command |
| 18 | + short-summary: List migrations in an organization. |
| 19 | + examples: |
| 20 | + - name: List migrations. |
| 21 | + text: | |
| 22 | + az devops migrations list --org https://codedev.ms/elmo1 |
| 23 | + """ |
| 24 | + |
| 25 | + helps['devops migrations status'] = """ |
| 26 | + type: command |
| 27 | + short-summary: Get migration status for a repository. |
| 28 | + examples: |
| 29 | + - name: Get migration status by repository id. |
| 30 | + text: | |
| 31 | + az devops migrations status --org https://codedev.ms/elmo1 --repository-id 00000000-0000-0000-0000-000000000000 |
| 32 | + """ |
| 33 | + |
| 34 | + helps['devops migrations create'] = """ |
| 35 | + type: command |
| 36 | + short-summary: Create a migration for a repository. |
| 37 | + examples: |
| 38 | + - name: Create a validation-only migration. |
| 39 | + text: | |
| 40 | + az devops migrations create --org https://codedev.ms/elmo1 --repository-id 00000000-0000-0000-0000-000000000000 \ |
| 41 | + --target-repository https://microsoft.ghe.com/1ES/Gardener --target-owner-user-id GeoffCoxMSFT --validate-only |
| 42 | + """ |
| 43 | + |
| 44 | + helps['devops migrations pause'] = """ |
| 45 | + type: command |
| 46 | + short-summary: Pause an active migration. |
| 47 | + """ |
| 48 | + |
| 49 | + helps['devops migrations resume'] = """ |
| 50 | + type: command |
| 51 | + short-summary: Resume a paused migration. |
| 52 | + """ |
| 53 | + |
| 54 | + helps['devops migrations abandon'] = """ |
| 55 | + type: command |
| 56 | + short-summary: Abandon and delete a migration. |
| 57 | + """ |
| 58 | + |
| 59 | + helps['devops migrations set-validate-only'] = """ |
| 60 | + type: command |
| 61 | + short-summary: Set validate-only mode on or off. |
| 62 | + examples: |
| 63 | + - name: Turn validate-only on. |
| 64 | + text: | |
| 65 | + az devops migrations set-validate-only --org https://codedev.ms/elmo1 --repository-id 00000000-0000-0000-0000-000000000000 --on |
| 66 | + - name: Turn validate-only off. |
| 67 | + text: | |
| 68 | + az devops migrations set-validate-only --org https://codedev.ms/elmo1 --repository-id 00000000-0000-0000-0000-000000000000 --off |
| 69 | + """ |
| 70 | + |
| 71 | + helps['devops migrations migrate'] = """ |
| 72 | + type: command |
| 73 | + short-summary: Start full migration after validation. |
| 74 | + """ |
| 75 | + |
| 76 | + helps['devops migrations cutover'] = """ |
| 77 | + type: group |
| 78 | + short-summary: Manage migration cutover. |
| 79 | + """ |
| 80 | + |
| 81 | + helps['devops migrations cutover set'] = """ |
| 82 | + type: command |
| 83 | + short-summary: Schedule cutover for a migration. |
| 84 | + examples: |
| 85 | + - name: Schedule cutover. |
| 86 | + text: | |
| 87 | + az devops migrations cutover set --org https://codedev.ms/elmo1 --repository-id 00000000-0000-0000-0000-000000000000 \ |
| 88 | + --scheduled-cutover-date 2030-12-31T11:59:00Z |
| 89 | + """ |
| 90 | + |
| 91 | + helps['devops migrations cutover cancel'] = """ |
| 92 | + type: command |
| 93 | + short-summary: Cancel a scheduled cutover. |
| 94 | + """ |
0 commit comments