Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AskFlagValue = askFlagValue
AskFlagValue returns ok=false when it cannot ask. Tests replace it.
View Source
var AuthCmd = &cobra.Command{ Use: "auth", Short: "Sign in and check which credentials are used", GroupID: groupSetup, Args: cobra.ArbitraryArgs, RunE: utils.GroupRunE, }
View Source
var ConfigCmd = &cobra.Command{ Use: "config", Short: "Read and write CLI settings", GroupID: groupSetup, Args: cobra.ArbitraryArgs, RunE: utils.GroupRunE, }
View Source
var RootCmd = &cobra.Command{ Use: "hostinger-mail", Short: "Hostinger Mail API Command Line Interface", Long: "Hostinger Mail API Command Line Interface.\n\nGet started:\n 1. Sign in: hostinger-mail config set api_token (or set HOSTINGER_MAIL_API_TOKEN)\n\nOutput is a table on a terminal and JSON when piped; pick one with --format\n(table|json|yaml|tree) or filter it with --jq. Missing arguments and required\nflags are prompted for in a terminal (disable with --no-input). Commands that\ndelete or stop things ask for confirmation (skip with --yes), and --dry-run\nprints the request as curl without sending it.\n\nDocumentation: https://github.com/hostinger/mail-api-cli/tree/main/docs", SilenceErrors: true, SilenceUsage: true, PersistentPreRunE: preRun, }
Functions ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.