"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/src/lib/formatters/show-all-sub-projects-tip.ts" (20 Feb 2024, 479 Bytes) of package /linux/misc/snyk-cli-1.1280.1.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 showGradleSubProjectsTip(
    4   packageManager,
    5   options,
    6   foundProjectCount,
    7 ): string {
    8   if (
    9     packageManager !== 'gradle' ||
   10     !foundProjectCount ||
   11     isMultiProjectScan(options) ||
   12     options.allSubProjects
   13   ) {
   14     return '';
   15   }
   16 
   17   return (
   18     `Tip: This project has multiple sub-projects (${foundProjectCount}), ` +
   19     'use --all-sub-projects flag to scan all sub-projects.'
   20   );
   21 }