All files / src/cli plugins.ts

0% Statements 0/3
100% Branches 0/0
100% Functions 0/0
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44                                                                                       
import type { Plugin } from "./cli";
import { createCatalogPlugin } from "@featurevisor/catalog";
 
import { initPlugin } from "../init";
import { lintPlugin } from "../linter";
import { buildPlugin } from "../builder";
import { testPlugin } from "../tester";
import { generateCodePlugin } from "../generate-code";
import { findDuplicateSegmentsPlugin } from "../find-duplicate-segments";
import { findUsagePlugin } from "../find-usage";
import { benchmarkPlugin } from "../benchmark";
import { configPlugin } from "../config";
import { evaluatePlugin } from "../evaluate";
import { assessDistributionPlugin } from "../assess-distribution";
import { infoPlugin } from "../info";
import { listPlugin } from "../list";
import { promotePlugin } from "../promoter";
import { getProjectSetExecutions } from "../sets";
 
// that do not require an existing project
export const nonProjectPlugins: Plugin[] = [initPlugin];
 
// that require an existing Featurevisor project
export const projectBasedPlugins: Plugin[] = [
  lintPlugin,
  buildPlugin,
  testPlugin,
  generateCodePlugin,
  findDuplicateSegmentsPlugin,
  findUsagePlugin,
  benchmarkPlugin,
  configPlugin,
  evaluatePlugin,
  assessDistributionPlugin,
  infoPlugin,
  listPlugin,
  promotePlugin,
  createCatalogPlugin({
    getProjectSetExecutions,
  }),
];
 
export const commonPlugins: Plugin[] = [];