1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
**Background**
Now, our command table is loaded three times.
The commands loaded later will override the commands loaded earlier
1. Load the CLI module
2. Load the wheel extension (az extension add)
3. Load dev extension (azdev extension add)
If modules or extensions are at the same level, they will be loaded in **alphabetical order**, so the modules and extensions loaded later will also override the commands in the modules and extensions loaded earlier.
**What if I want to my preview extension overwrite my GA extension?**
You need to ensure that the extension name of preview is sorted after the extension name of GA
For example:
GA extension name: containerapp
Preview extension name: containerapp-preview
**Testing result**
1. If the command only exists in the ga extension, keep it

2. If the command exists at the same time, the preview command will overwrite ga

3. If the command only exists in the preview extension, keep it

|