MCPcopy Create free account
hub / github.com/cloudbase/garm / formatInfo

Function formatInfo

cmd/garm-cli/cmd/controller.go:516–523  ·  view source on GitHub ↗
(info params.ControllerInfo)

Source from the content-addressed store, hash-verified

514}
515
516func formatInfo(info params.ControllerInfo) error {
517 if outputFormat == common.OutputFormatJSON {
518 printAsJSON(info)
519 return nil
520 }
521 fmt.Println(renderControllerInfoTable(info))
522 return nil
523}
524
525func init() {
526 controllerUpdateCmd.Flags().StringVarP(&metadataURL, "metadata-url", "m", "", "The metadata URL for the controller (ie. https://garm.example.com/api/v1/metadata)")

Callers 1

controller.goFile · 0.85

Calls 2

printAsJSONFunction · 0.85

Tested by

no test coverage detected