b2c-plugin-pipeline-visualizer
v0.1.0
Published
B2C CLI plugin that exports ASCII pipeline previews from SFCC pipeline XML.
Maintainers
Readme
B2C Plugin: Pipeline Visualizer (ASCII)
Generate an ASCII preview of SFCC pipeline XML files using the B2C CLI plugin system.
Install (local development)
npm install
npm run build
b2c plugins link /path/to/b2c-plugin-pipeline-visualizerVerify:
b2c pluginsUsage
b2c pipeline ascii path/to/pipeline.xml --out debug/layouts/pipeline.txtOutput is always written to the file specified by --out.
Options:
-o, --out <path>: Output file path (required).-w, --cell-width <n>: Grid cell label width (default: 18).--grid: Include the grid section.--nodes: Include the node list section.--edges: Include the edge list section.--show-bendpoints: Include bendpoint details in the edge list.-F, --full-layout: Include the coarse ASCII layout view (default).--no-full-layout: Disable the coarse ASCII layout view.-b, --branch <name>: Filter by branch name or start node name.
Image Export
b2c pipeline image path/to/pipeline.xml --out debug/layouts/pipeline.svgOptions:
-o, --out <path>: Output file path (required, .svg).-b, --branch <name>: Filter by branch name or start node name.-s, --scale <n>: Scale factor for SVG dimensions.-p, --padding <n>: Padding around the rendered pipeline in pixels.--background <color>: Background color (usetransparentfor none).--grid: Include the background grid.--show-bendpoints: Render bendpoint indicators on edges.
Notes
- This plugin adds a new command,
pipeline ascii. - The ASCII output uses the same layout and edge routing logic as the visualizer.
Unlink
b2c plugins unlink b2c-plugin-pipeline-visualizer