Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CliCommand = cli.Command{ Name: "info", Usage: "Shows version information about the OpenNMS server", Action: func(c *cli.Context) error { jsonInfo, err := rest.Instance.Get("/rest/info") if err != nil { return err } info := model.OnmsInfo{} err = json.Unmarshal(jsonInfo, &info) if err != nil { return err } data, err := yaml.Marshal(&info) if err != nil { return err } fmt.Println(string(data)) return nil }, }
CliCommand the CLI command to provide server information
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.