"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1260.0/src/lib/formatters/show-all-projects-tip.ts" (4 Dec 2023, 435 Bytes) of package /linux/misc/snyk-cli-1.1260.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import { isMultiProjectScan } from '../is-multi-project-scan';
    2 
    3 export function showAllProjectsTip(
    4   packageManager,
    5   options,
    6   foundProjectCount,
    7 ): string {
    8   if (
    9     packageManager === 'gradle' ||
   10     !foundProjectCount ||
   11     isMultiProjectScan(options)
   12   ) {
   13     return '';
   14   }
   15   return (
   16     `Tip: Detected multiple supported manifests (${foundProjectCount}), ` +
   17     'use --all-projects to scan all of them at once.'
   18   );
   19 }