Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "version", Short: "View version information", RunE: func(cmd *cobra.Command, args []string) error { semver := build.Semver() v := &versionCmd{ Version: semver, } bi, ok := debug.ReadBuildInfo() if !ok { return fmt.Errorf("failed to read build info") } for _, dep := range bi.Deps { if strings.Contains(dep.Path, "github.com/onflow/") { v.Dependencies = append(v.Dependencies, *dep) } } if err := v.Print(command.Flags.Format); err != nil { return err } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.