Documentation
¶
Index ¶
- func Execute(args []string) (err error)
- func VersionString() string
- type AuthCmd
- type AuthRemoveCmd
- type AuthSetIPCmd
- type AuthSetKeyCmd
- type AuthSetUserCmd
- type AuthStatusCmd
- type CLI
- type DNSCmd
- type DNSListCmd
- type DNSSetCmd
- type DNSSetCustomCmd
- type DomainsCheckCmd
- type DomainsCmd
- type DomainsGetCmd
- type DomainsListCmd
- type ExitError
- type RootFlags
- type SSLCmd
- type SSLListCmd
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionString ¶
func VersionString() string
Types ¶
type AuthCmd ¶
type AuthCmd struct {
SetKey AuthSetKeyCmd `cmd:"" name:"set-key" help:"Set API key (uses --stdin by default)"`
SetUser AuthSetUserCmd `cmd:"" name:"set-user" help:"Set API username"`
SetIP AuthSetIPCmd `cmd:"" name:"set-ip" help:"Set client IP address"`
Status AuthStatusCmd `cmd:"" help:"Show authentication status"`
Remove AuthRemoveCmd `cmd:"" help:"Remove all stored credentials"`
}
type AuthRemoveCmd ¶
type AuthRemoveCmd struct{}
type AuthSetIPCmd ¶
type AuthSetIPCmd struct {
IP string `arg:"" required:"" help:"Client IP address for API access"`
}
type AuthSetKeyCmd ¶
type AuthSetUserCmd ¶
type AuthSetUserCmd struct {
Username string `arg:"" required:"" help:"Namecheap API username"`
}
type AuthStatusCmd ¶
type AuthStatusCmd struct{}
type CLI ¶
type CLI struct {
RootFlags `embed:""`
Version kong.VersionFlag `help:"Print version and exit"`
Auth AuthCmd `cmd:"" help:"Auth and credentials"`
Domains DomainsCmd `cmd:"" help:"Domain management"`
DNS DNSCmd `cmd:"" name:"dns" help:"DNS record management"`
SSL SSLCmd `cmd:"" name:"ssl" help:"SSL certificate management"`
VersionCmd VersionCmd `cmd:"" name:"version" help:"Print version"`
}
type DNSCmd ¶
type DNSCmd struct {
List DNSListCmd `cmd:"" help:"List DNS records for a domain"`
Set DNSSetCmd `cmd:"" help:"Set DNS records for a domain"`
SetCustom DNSSetCustomCmd `cmd:"set-custom" help:"Set custom nameservers for a domain"`
}
type DNSListCmd ¶
type DNSSetCmd ¶
type DNSSetCustomCmd ¶
type DomainsCheckCmd ¶
type DomainsCheckCmd struct {
Domains string `arg:"" required:"" help:"Comma-separated domains to check (e.g., example.com,test.net)"`
}
type DomainsCmd ¶
type DomainsCmd struct {
List DomainsListCmd `cmd:"" help:"List domains in your account"`
Check DomainsCheckCmd `cmd:"" help:"Check domain availability"`
Get DomainsGetCmd `cmd:"" help:"Get domain details"`
}
type DomainsGetCmd ¶
type DomainsGetCmd struct {
Domain string `arg:"" required:"" help:"Domain name to get details for"`
}
type DomainsListCmd ¶
type RootFlags ¶
type RootFlags struct {
Color string `help:"Color output: auto|always|never" default:"${color}"`
JSON bool `help:"Output JSON to stdout (best for scripting)" default:"${json}"`
Plain bool `help:"Output stable, parseable text to stdout (TSV; no colors)" default:"${plain}"`
Force bool `help:"Skip confirmations for destructive commands"`
NoInput bool `help:"Never prompt; fail instead (useful for CI)"`
Verbose bool `help:"Enable verbose logging"`
Sandbox bool `help:"Use sandbox API endpoint"`
}
type SSLCmd ¶
type SSLCmd struct {
List SSLListCmd `cmd:"" help:"List SSL certificates"`
}
type SSLListCmd ¶
type SSLListCmd struct {
Type string `help:"Filter: All, Processing, or Active" default:"" enum:",All,Processing,Active"`
}
type VersionCmd ¶
type VersionCmd struct{}
Click to show internal directories.
Click to hide internal directories.