MCPcopy Create free account
hub / github.com/aptly-dev/aptly / makeCmdGraph

Function makeCmdGraph

cmd/graph.go:115–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115func makeCmdGraph() *commander.Command {
116 cmd := &commander.Command{
117 Run: aptlyGraph,
118 UsageLine: "graph",
119 Short: "render graph of relationships",
120 Long: `
121Command graph displays relationship between mirrors, local repositories,
122snapshots and published repositories using graphviz package to render
123graph as an image.
124
125Example:
126
127 $ aptly graph
128`,
129 }
130
131 cmd.Flag.String("format", "png", "render graph to specified format (png, svg, pdf, etc.)")
132 cmd.Flag.String("output", "", "specify output filename, default is to open result in viewer")
133 cmd.Flag.String("layout", "horizontal", "create a more 'vertical' or a more 'horizontal' graph layout")
134
135 return cmd
136}

Callers 1

RootCommandFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected