Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailCmd = &cobra.Command{ Use: "email <mailbox-resource-id>", Short: "Send email", Long: "Send a message from the managed mailbox. Saves a copy to INBOX.Sent.", Args: cobra.MatchAll(cobra.ExactArgs(1)), Run: func(cmd *cobra.Command, args []string) { payload, err := json.Marshal(emailBody(cmd)) if err != nil { log.Fatal(err) } r, err := api.Request().SendEmailWithBodyWithResponse(context.TODO(), args[0], "application/json", bytes.NewReader(payload)) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
View Source
var GroupCmd = &cobra.Command{
Use: "send",
Short: "Send commands",
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.