MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / cmd_svg

Function cmd_svg

SLiCAP/schematic/cli.py:106–113  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

104
105
106def cmd_svg(args):
107 _qt_app()
108 from .export import export_svg
109 input_path = Path(args.input)
110 scene, data = _load_scene(input_path)
111 output_path = Path(args.output) if args.output else _default_output(input_path, "img", ".svg")
112 export_svg(scene, output_path, data.properties.title or input_path.stem)
113 print(f"SVG → {output_path}")
114
115
116def cmd_pdf(args):

Callers

nothing calls this directly

Calls 4

_qt_appFunction · 0.85
_load_sceneFunction · 0.85
_default_outputFunction · 0.85
export_svgFunction · 0.85

Tested by

no test coverage detected