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 vps actions backups data_centers firewall firewall/rules monarx post_install_scripts ptr public_keys recovery snapshots templates virtual_machines Click to show internal directories. Click to hide internal directories.