MCPcopy Create free account
hub / github.com/256dpi/gcode / main

Function main

cmd/gcode/main.go:9–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func main() {
10 c := parseCommand()
11
12 // triage command
13 if c.cInfo {
14 info(c)
15 } else if c.cStrip {
16 strip(c)
17 } else if c.cOffset {
18 offset(c)
19 } else if c.cSVG {
20 svg(c)
21 }
22}
23
24func info(c *command) {
25 // load g-code file

Callers

nothing calls this directly

Calls 5

parseCommandFunction · 0.85
infoFunction · 0.85
stripFunction · 0.85
offsetFunction · 0.85
svgFunction · 0.85

Tested by

no test coverage detected