Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "apigeecli", Short: "Utility to work with Apigee APIs.", Long: "This command lets you interact with Apigee APIs.", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { apiclient.SetServiceAccount(serviceAccount) apiclient.SetApigeeToken(accessToken) if !disableCheck { if ok, _ := apiclient.TestAndUpdateLastCheck(); !ok { latestVersion, _ := getLatestVersion() if cmd.Version == "" { clilog.Info.Println("apigeecli 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) } } } _ = 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.