| 113 | } |
| 114 | |
| 115 | func makeCmdGraph() *commander.Command { |
| 116 | cmd := &commander.Command{ |
| 117 | Run: aptlyGraph, |
| 118 | UsageLine: "graph", |
| 119 | Short: "render graph of relationships", |
| 120 | Long: ` |
| 121 | Command graph displays relationship between mirrors, local repositories, |
| 122 | snapshots and published repositories using graphviz package to render |
| 123 | graph as an image. |
| 124 | |
| 125 | Example: |
| 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 | } |