Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &Z.Cmd{ Name: "visualize", Summary: `renders the skill graph as a image and opens it in the default viewer`, Commands: []*Z.Cmd{ help.Cmd, }, Call: func(cmd *Z.Cmd, args ...string) error { dStore := &store.LocalStore{Path: Z.Vars.Get(".darwin.dir")} d, err := darwin.Load( dStore, ) if err != nil { return err } json, err := json.Marshal(maps.Values(d.Nodes)) if err != nil { return err } f, err := os.CreateTemp("", "darwin-visualize-*.html") if err != nil { return err } defer f.Close() err = visTmpl.Execute(f, string(json)) if err != nil { return err } return Z.Exec("xdg-open", f.Name()) return nil }, }
Cmd is the root command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.