Documentation ¶ Index ¶ Variables func Execute() Constants ¶ This section is empty. Variables ¶ View Source var ( OutputFormat string ) View Source var RootCmd = &cobra.Command{ Use: "hapi", Short: "Hostinger API Command Line Interface", Long: ``, } View Source var VersionCmd = &cobra.Command{ Use: "version", Short: "Show the current version", Run: func(cmd *cobra.Command, args []string) { fmt.Println(utils.CLIVersion.String(true)) }, } Functions ¶ func Execute ¶ func Execute() Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. Types ¶ This section is empty. Source Files ¶ View all Source files root.goversion.go Directories ¶ Show internal Expand all Path Synopsis billing catalog payment_methods subscriptions dns records snapshots domains availability forwarding portfolio verifications whois ecommerce payments products shipping stores horizons websites hosting databases datacenters domains nodejs orders websites wordpress reach contacts profiles segments vps actions backups data_centers docker firewall monarx post_install_scripts ptr public_keys recovery snapshots templates virtual_machines Click to show internal directories. Click to hide internal directories.