Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
fix-help-error-when-no-example-exists (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaozha authored Jun 15, 2020
1 parent 72b8b98 commit e74db5e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/plugins/azgenerator/TemplateAzureCliHelp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ function generateWaitCommandHelp(commandGroup, allLongRunCommand) {
for(let waitParam of allLongRunCommand) {
let name = " - name: Pause executing next line of CLI script until the " + commandGroup + " is successfully " + waitParam + ".";
ToMultiLine(name, output, 119, true);
output.push(" text: |-");
let line = showExampleStr.replace(/ show /g, ' wait ') + " --" + waitParam;
ToMultiLine(line, output, 119, true);
if(!isNullOrUndefined(showExampleStr) && showExampleStr != "") {
output.push(" text: |-");
let line = showExampleStr.replace(/ show /g, ' wait ') + " --" + waitParam;
ToMultiLine(line, output, 119, true);
}

}
output.push("\"\"\"");
return output;
Expand Down

0 comments on commit e74db5e

Please sign in to comment.