Skip to content

Commit 6358cd6

Browse files
committed
Add AAZ loader to load preview API commands with PSS support
1 parent 532d583 commit 6358cd6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/aks-preview/azext_aks_preview/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ def __init__(self, cli_ctx=None):
3535

3636
def load_command_table(self, args):
3737
super().load_command_table(args)
38+
39+
# Load AAZ-generated commands from the preview API
40+
from azure.cli.core.aaz import load_aaz_command_table
41+
try:
42+
from . import aaz
43+
except ImportError:
44+
aaz = None
45+
if aaz:
46+
load_aaz_command_table(
47+
loader=self,
48+
aaz_pkg_name=aaz.__name__,
49+
args=args
50+
)
51+
52+
# Load custom command implementations (will override AAZ commands)
3853
from azext_aks_preview.commands import load_command_table
3954
load_command_table(self, args)
4055
return self.command_table

0 commit comments

Comments
 (0)