You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ditamap/command.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ export class Command extends Ditamap {
24
24
.filter(([,flag])=>!flag.hidden)
25
25
.map(([flagName,flag])=>{
26
26
if(!flag.longDescription){
27
-
events.emit('warning',chalk.yellow(`> No flag longDescription for command ${chalk.bold(command.id)} on flag ${flagName}. That command owner must add the longDescription to the flag definition.\n`));
27
+
events.emit('warning',`No flag longDescription for command ${chalk.bold(command.id)} on flag ${flagName}. That command owner must add the longDescription to the flag definition.`);
28
28
}
29
29
returnObject.assign(flag,{
30
30
name: flagName,
@@ -44,7 +44,7 @@ export class Command extends Ditamap {
44
44
}
45
45
46
46
if(!command.longDescription){
47
-
events.emit('warning',chalk.yellow(`> No longDescription for command ${chalk.bold(command.id)}. That command owner must add the longDescription to the command definition.\n`));
47
+
events.emit('warning',`No longDescription for command ${chalk.bold(command.id)}. That command owner must add the longDescription to the command definition.`);
48
48
}
49
49
50
50
letfullName: string;
@@ -53,16 +53,17 @@ export class Command extends Ditamap {
@@ -24,7 +24,7 @@ export class MainTopicIntro extends Ditamap {
24
24
}
25
25
26
26
if(!subTopicMeta.longDescription){
27
-
events.emit('warning',chalk.yellow(`> No long description for topic ${chalk.bold(topic+':'+subtopic)}. That topic owner must add a longDescription to the topic metadata in the oclif section in the package.json file within their plugin.\n`));
27
+
events.emit('warning',`No long description for topic ${chalk.bold(topic+':'+subtopic)}. That topic owner must add a longDescription to the topic metadata in the oclif section in the package.json file within their plugin.`);
events.emit('warning',chalk.yellow(`> No longDescription for topic ${chalk.bold(topic)}. That topic owner must add topic metadata, that includes longDescription, in the oclif section in the package.json file within their plugin.\n`));
53
-
return;
52
+
description=asString(topicMeta.description);
53
+
if(!description){
54
+
events.emit('warning',`No longDescription for topic ${chalk.bold(topic)}. Skipping until topic owner adds topic metadata, that includes longDescription, in the oclif section in the package.json file within their plugin.`);
55
+
return;
56
+
}
57
+
events.emit('warning',`No longDescription for topic ${chalk.bold(topic)} but found description. Still generating but topic owner must add topic metadata, that includes longDescription, in the oclif section in the package.json file within their plugin.`);
events.emit('warning',chalk.yellow(`> No metadata for topic ${chalk.bold(fullTopicPath)}. That topic owner must add topic metadata in the oclif section in the package.json file within their plugin.\n`));
79
+
events.emit('warning',`No metadata for topic ${chalk.bold(fullTopicPath)}. That topic owner must add topic metadata in the oclif section in the package.json file within their plugin.`);
0 commit comments