(hook params.HookInfo)
| 128 | } |
| 129 | |
| 130 | func 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 | |
| 144 | func printAsJSON(value interface{}) { |
| 145 | asJs, err := json.Marshal(value) |
no outgoing calls
no test coverage detected