Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "integrationcli", Short: "Utility to work with Integration & Connectors", Long: "This command lets you interact with Integration and Connector APIs.", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { apiclient.SetServiceAccount(serviceAccount) apiclient.SetIntegrationToken(accessToken) if !disableCheck { if ok, _ := apiclient.TestAndUpdateLastCheck(); !ok { latestVersion, _ := getLatestVersion() if cmd.Version == "" { clilog.Info.Println("integrationcli wasn't built with a valid Version tag.") } else if latestVersion != "" && cmd.Version != latestVersion { fmt.Printf("You are using %s, the latest version %s is available for download\n", cmd.Version, latestVersion) } } } if useApigee { apiclient.UseApigeeIntegration() } _ = apiclient.SetAccessToken() return nil }, }
RootCmd to manage apigeecli
Functions ¶
func GetRootCmd ¶
GetRootCmd returns the root of the cobra command-tree.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.