(args: ReadonlyArray<string>)
| 346 | } |
| 347 | |
| 348 | const renderWizardArgs = (args: ReadonlyArray<string>) => { |
| 349 | const params = pipe( |
| 350 | Arr.filter(args, (param) => param.length > 0), |
| 351 | Arr.join(" ") |
| 352 | ) |
| 353 | const executeMsg = InternalSpan.text( |
| 354 | "You may now execute your command directly with the following options and arguments:" |
| 355 | ) |
| 356 | return InternalHelpDoc.blocks([ |
| 357 | InternalHelpDoc.p(InternalSpan.strong(InternalSpan.code("Wizard Mode Complete!"))), |
| 358 | InternalHelpDoc.p(executeMsg), |
| 359 | InternalHelpDoc.p(InternalSpan.concat( |
| 360 | InternalSpan.text(" "), |
| 361 | InternalSpan.highlight(params, Color.cyan) |
| 362 | )) |
| 363 | ]) |
| 364 | } |
| 365 | |
| 366 | const isLogLevelArg = (arg?: string) => { |
| 367 | return arg && (arg === "--log-level" || arg.startsWith("--log-level=")) |
no test coverage detected
searching dependent graphs…