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

fix-help-error-when-no-example-exists #422

Merged
merged 2 commits into from
Jun 15, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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