зеркало из https://github.com/microsoft/azure-cli.git
Fix Document CI error due to command params not being loaded. (#1334)
- Fix error running azhelpgen.py -- To load the full command table with all parameter values, we iterate over the command table running -h on each command.
This commit is contained in:
Родитель
487f0196fc
Коммит
4fde5fdca2
|
@ -14,10 +14,11 @@ from azure.cli.core.application import APPLICATION, Configuration
|
|||
import azure.cli.core._help as _help
|
||||
|
||||
app = APPLICATION
|
||||
try:
|
||||
app.execute(['-h'])
|
||||
except:
|
||||
pass
|
||||
for cmd in app.configuration.get_command_table():
|
||||
try:
|
||||
app.execute(cmd.split() + ['-h'])
|
||||
except:
|
||||
pass
|
||||
|
||||
class AzHelpGenDirective(Directive):
|
||||
def make_rst(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче