Documentation
¶
Index ¶
- func CompleteRecordIDs(_ *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)
- func CompleteRecordTypes(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
- func CompleteZoneNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteZoneThenRecordID(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func Execute()
- func NewLogger(logPath string, debug bool) (*log.Logger, *os.File)
- type CLI
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteRecordIDs ¶ added in v0.4.0
func CompleteRecordIDs(_ *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)
CompleteRecordIDs returns DNS record IDs for a zone already provided as args[0].
func CompleteRecordTypes ¶ added in v0.4.0
func CompleteRecordTypes(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)
CompleteRecordTypes returns valid DNS record type values for --type flag completion.
func CompleteZoneNames ¶
func CompleteZoneNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteZoneNames returns a list of zone names for shell completion.
func CompleteZoneThenRecordID ¶ added in v0.4.0
func CompleteZoneThenRecordID(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteZoneThenRecordID completes zone name for arg[0] and record ID for args[1].
Types ¶
Click to show internal directories.
Click to hide internal directories.