Skip to content

Commit 604df9b

Browse files
saifaldin14Saif Al-Din AliCopilot
authored
[MIGRATE] Add codeowner docs (#9328)
* Create extension * Update src/migrate/azext_migrate/__init__.py Co-authored-by: Copilot <[email protected]> * Fix import issues * Update src/migrate/setup.py Co-authored-by: Copilot <[email protected]> * Small * Small lint * Small * disable lint for this check * Add json * Fix licesnse issue * fix small * Small * Get rid of unused variables * Add service name and code owner * New version * Style * Small * Update * Follow standard * Add suggestions * Small * Not preview --------- Co-authored-by: Saif Al-Din Ali <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 5824259 commit 604df9b

File tree

7 files changed

+32
-9
lines changed

7 files changed

+32
-9
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,5 @@
337337
/src/storage-discovery/ @shanefujs @calvinhzy
338338

339339
/src/aks-agent/ @feiskyer @mainred @nilo19
340+
341+
/src/migrate/ @saifaldin14

src/migrate/HISTORY.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ Release History
77
+++++++++++++++
88
* Initial release.
99

10+
2.0.0
11+
+++++++++++++++
12+
* New version.
1013

src/migrate/azext_migrate/__init__.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# --------------------------------------------------------------------------------------------
55

66
from azure.cli.core import AzCommandsLoader
7-
from azure.cli.core.profiles import ResourceType
87

98

109
class MigrateCommandsLoader(AzCommandsLoader):
@@ -18,13 +17,23 @@ def __init__(self, cli_ctx=None):
1817

1918
super().__init__(
2019
cli_ctx=cli_ctx,
21-
custom_command_type=migrate_custom,
22-
resource_type=ResourceType.MGMT_MIGRATE
20+
custom_command_type=migrate_custom
2321
)
2422

2523
def load_command_table(self, args):
2624
from azext_migrate.commands \
2725
import load_command_table
26+
from azure.cli.core.aaz import load_aaz_command_table
27+
try:
28+
from . import aaz
29+
except ImportError:
30+
aaz = None
31+
if aaz:
32+
load_aaz_command_table(
33+
loader=self,
34+
aaz_pkg_name=aaz.__name__,
35+
args=args
36+
)
2837
load_command_table(self, args)
2938
return self.command_table
3039

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+
# Code generated by aaz-dev-tools
6+
# --------------------------------------------------------------------------------------------

src/migrate/setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
[bdist_wheel]
2-
universal=1
1+
#setup.cfg

src/migrate/setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
# Licensed under the MIT License. See License.txt in the project root for license information.
66
# --------------------------------------------------------------------------------------------
77

8-
from codecs import open
98
from setuptools import setup, find_packages
109

11-
VERSION = "1.0.0"
10+
VERSION = "2.0.0"
1211

1312
CLASSIFIERS = [
1413
'Development Status :: 4 - Beta',
@@ -32,8 +31,8 @@
3231
description='Support for Azure Migrate preview',
3332
long_description='Support for Azure Migrate preview',
3433
license='MIT',
35-
author='Jeffrey Li',
36-
author_email='jefl@microsoft.com',
34+
author='Saif Al-Din Ali',
35+
author_email='saifaldinali@microsoft.com',
3736
url='https://github.com/Azure/azure-cli-extensions/tree/main/src/migrate',
3837
classifiers=CLASSIFIERS,
3938
packages=find_packages(exclude=["tests"]),

src/service_name.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,5 +973,10 @@
973973
"Command": "az site",
974974
"AzureServiceName": "Azure Arc site manager",
975975
"URL": "https://learn.microsoft.com/en-us/azure/azure-arc/site-manager/"
976+
},
977+
{
978+
"Command": "az migrate",
979+
"AzureServiceName": "Azure Migrate",
980+
"URL": "https://learn.microsoft.com/azure/migrate"
976981
}
977982
]

0 commit comments

Comments
 (0)