Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentCmd = &cobra.Command{ Use: "current", Short: "Get the authenticated account", Long: "Returns the authenticated account and the mailboxes it can manage.", Example: " hostinger-mail account current", ValidArgsFunction: cobra.NoFileCompletions, RunE: func(cmd *cobra.Command, args []string) error { args = utils.PromptedArgs(cmd, args) call := func(ctx context.Context) ([]byte, int, error) { r, err := api.Request().GetCurrentAccountWithResponse(ctx) if err != nil { return nil, 0, err } return r.Body, r.StatusCode(), nil } respBody, status, err := call(cmd.Context()) if err != nil { return err } return output.Format(cmd, respBody, status) }, }
View Source
var GroupCmd = &cobra.Command{ Use: "account", Short: "Account commands", Args: cobra.ArbitraryArgs, RunE: utils.GroupRunE, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.