(cmd *cobra.Command, args []string)
| 157 | } |
| 158 | |
| 159 | func triggerDomain(cmd *cobra.Command, args []string) { |
| 160 | if len(args) == 0 { |
| 161 | fmt.Fprintln(os.Stderr, "must specify domain-lcuuid.") |
| 162 | return |
| 163 | } |
| 164 | server := common.GetServerInfo(cmd) |
| 165 | url := fmt.Sprintf("http://%s:%d/v1/trigger-domain/%s/", server.IP, server.Port, args[0]) |
| 166 | resp, err := common.CURLResponseRawJson("GET", url, []common.HTTPOption{common.WithTimeout(common.GetTimeout(cmd))}...) |
| 167 | if err != nil { |
| 168 | fmt.Fprintln(os.Stderr, err) |
| 169 | return |
| 170 | } |
| 171 | common.PrettyPrint(resp) |
| 172 | } |
no outgoing calls
no test coverage detected