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

Function formatOneHookInfo

cmd/garm-cli/cmd/root.go:130–142  ·  view source on GitHub ↗
(hook params.HookInfo)

Source from the content-addressed store, hash-verified

128}
129
130func formatOneHookInfo(hook params.HookInfo) {
131 t := table.NewWriter()
132 header := table.Row{"Field", "Value"}
133 t.AppendHeader(header)
134 t.AppendRows([]table.Row{
135 {"ID", hook.ID},
136 {"URL", hook.URL},
137 {"Events", hook.Events},
138 {"Active", hook.Active},
139 {"Insecure SSL", hook.InsecureSSL},
140 })
141 fmt.Println(t.Render())
142}
143
144func printAsJSON(value interface{}) {
145 asJs, err := json.Marshal(value)

Callers 2

repository.goFile · 0.85
organization.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected