Support vertical graph layouts

This commit is contained in:
jolo
2017-01-14 02:11:59 +01:00
parent 570835227b
commit 0e8ea6363a
3 changed files with 38 additions and 13 deletions
+5 -1
View File
@@ -21,8 +21,11 @@ func aptlyGraph(cmd *commander.Command, args []string) error {
return commander.ErrCommandError
}
vertical := context.Flags().Lookup("vertical").Value.Get().(bool)
fmt.Printf("Generating graph...\n")
graph, err := deb.BuildGraph(context.CollectionFactory())
graph, err := deb.BuildGraph(context.CollectionFactory(), vertical)
if err != nil {
return err
}
@@ -108,6 +111,7 @@ Example:
cmd.Flag.String("format", "png", "render graph to specified format (png, svg, pdf, etc.)")
cmd.Flag.String("output", "", "specify output filename, default is to open result in viewer")
cmd.Flag.Bool("vertical", false, "try to achieve a more vertical graph layout")
return cmd
}